mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 17:23:15 +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
@@ -27,20 +27,20 @@ struct t_fset_option;
|
||||
extern struct t_gui_buffer *fset_buffer;
|
||||
extern int fset_buffer_selected_line;
|
||||
|
||||
extern void fset_buffer_set_title ();
|
||||
extern void fset_buffer_set_title (void);
|
||||
extern int fset_buffer_display_option (struct t_fset_option *fset_option);
|
||||
extern void fset_buffer_refresh (int clear);
|
||||
extern void fset_buffer_set_current_line (int line);
|
||||
extern void fset_buffer_check_line_outside_window ();
|
||||
extern void fset_buffer_check_line_outside_window (void);
|
||||
extern int fset_buffer_window_scrolled_cb (const void *pointer,
|
||||
void *data,
|
||||
const char *signal,
|
||||
const char *type_data,
|
||||
void *signal_data);
|
||||
extern void fset_buffer_set_keys (struct t_hashtable *hashtable);
|
||||
extern void fset_buffer_set_localvar_filter ();
|
||||
extern void fset_buffer_open ();
|
||||
extern int fset_buffer_init ();
|
||||
extern void fset_buffer_end ();
|
||||
extern void fset_buffer_set_localvar_filter (void);
|
||||
extern void fset_buffer_open (void);
|
||||
extern int fset_buffer_init (void);
|
||||
extern void fset_buffer_end (void);
|
||||
|
||||
#endif /* WEECHAT_PLUGIN_FSET_BUFFER_H */
|
||||
|
||||
Reference in New Issue
Block a user