mirror of
https://github.com/weechat/weechat.git
synced 2026-06-24 20:06:38 +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
@@ -901,7 +901,7 @@ script_buffer_get_window_info (struct t_gui_window *window,
|
||||
*/
|
||||
|
||||
void
|
||||
script_buffer_check_line_outside_window ()
|
||||
script_buffer_check_line_outside_window (void)
|
||||
{
|
||||
struct t_gui_window *window;
|
||||
int start_line_y, chat_height;
|
||||
@@ -1073,7 +1073,7 @@ script_buffer_close_cb (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
script_buffer_set_callbacks ()
|
||||
script_buffer_set_callbacks (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
|
||||
@@ -1142,7 +1142,7 @@ script_buffer_set_keys (struct t_hashtable *hashtable)
|
||||
*/
|
||||
|
||||
void
|
||||
script_buffer_set_localvar_filter ()
|
||||
script_buffer_set_localvar_filter (void)
|
||||
{
|
||||
if (!script_buffer)
|
||||
return;
|
||||
@@ -1156,7 +1156,7 @@ script_buffer_set_localvar_filter ()
|
||||
*/
|
||||
|
||||
void
|
||||
script_buffer_open ()
|
||||
script_buffer_open (void)
|
||||
{
|
||||
struct t_hashtable *buffer_props;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user