mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 17:53:13 +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
@@ -47,15 +47,15 @@ extern void plugin_auto_load (char *force_plugin_autoload,
|
||||
char **argv);
|
||||
extern void plugin_unload (struct t_weechat_plugin *plugin);
|
||||
extern void plugin_unload_name (const char *name);
|
||||
extern void plugin_unload_all ();
|
||||
extern void plugin_unload_all (void);
|
||||
extern void plugin_reload_name (const char *name, int argc, char **argv);
|
||||
extern void plugin_init (char *force_plugin_autoload, int argc, char *argv[]);
|
||||
extern void plugin_end ();
|
||||
extern void plugin_end (void);
|
||||
extern struct t_hdata *plugin_hdata_plugin_cb (const void *pointer,
|
||||
void *data,
|
||||
const char *hdata_name);
|
||||
extern int plugin_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_weechat_plugin *plugin);
|
||||
extern void plugin_print_log ();
|
||||
extern void plugin_print_log (void);
|
||||
|
||||
#endif /* WEECHAT_PLUGIN_PLUGIN_H */
|
||||
|
||||
Reference in New Issue
Block a user