mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 10:13:12 +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
@@ -52,7 +52,7 @@ extern int irc_buffer_close_cb (const void *pointer, void *data,
|
||||
extern int irc_buffer_nickcmp_cb (const void *pointer, void *data,
|
||||
struct t_gui_buffer *buffer,
|
||||
const char *nick1, const char *nick2);
|
||||
extern struct t_gui_buffer *irc_buffer_search_server_lowest_number ();
|
||||
extern struct t_gui_buffer *irc_buffer_search_server_lowest_number (void);
|
||||
extern struct t_gui_buffer *irc_buffer_search_private_lowest_number (struct t_irc_server *server);
|
||||
extern void irc_buffer_move_near_server (struct t_irc_server *server,
|
||||
int list_buffer, int channel_type,
|
||||
|
||||
Reference in New Issue
Block a user