mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 21:36:37 +02:00
Fix function prototypes for list of arguments
At the moment, building WeeChat triggers several thousand -Wstrict-prototypes diagnostics. This is due to its source code using an empty argument list for functions and function pointers that take no arguments, instead of explicitly declaring that they take no arguments by using a void list. This commit replaces all empty argument lists with a void list. Note that Ruby's headers also suffer the same problem, which WeeChat can't do anything to fix. Thus, building WeeChat with the Ruby plugin enabled will still issue approximately 30 such diagnostics.
This commit is contained in:
committed by
Sébastien Helleu
parent
20b2bdedc2
commit
f5038bccbc
@@ -26,10 +26,10 @@ struct t_trigger_context;
|
||||
|
||||
extern struct t_gui_buffer *trigger_buffer;
|
||||
|
||||
extern void trigger_buffer_set_callbacks ();
|
||||
extern void trigger_buffer_set_callbacks (void);
|
||||
extern void trigger_buffer_open (const char *filter, int switch_to_buffer);
|
||||
extern int trigger_buffer_display_trigger (struct t_trigger *trigger,
|
||||
struct t_trigger_context *context);
|
||||
extern void trigger_buffer_end ();
|
||||
extern void trigger_buffer_end (void);
|
||||
|
||||
#endif /* WEECHAT_PLUGIN_TRIGGER_BUFFER_H */
|
||||
|
||||
Reference in New Issue
Block a user