diff --git a/src/core/core-debug.c b/src/core/core-debug.c index 049b4edad..d16ecf103 100644 --- a/src/core/core-debug.c +++ b/src/core/core-debug.c @@ -228,8 +228,11 @@ debug_dump_cb (const void *pointer, void *data, */ void -debug_sigsegv_cb (int) +debug_sigsegv_cb (int signo) { + /* make C compiler happy */ + (void) signo; + debug_dump (1); unhook_all (); gui_main_end (0); diff --git a/src/core/core-debug.h b/src/core/core-debug.h index cff61736b..b9b15fe55 100644 --- a/src/core/core-debug.h +++ b/src/core/core-debug.h @@ -27,7 +27,7 @@ struct t_gui_window_tree; extern long long debug_long_callbacks; extern void debug_build_info (); -extern void debug_sigsegv_cb (int); +extern void debug_sigsegv_cb (int signo); extern void debug_windows_tree (); extern void debug_memory (); extern void debug_hdata (); diff --git a/src/core/core-signal.c b/src/core/core-signal.c index c04551b88..725878cc5 100644 --- a/src/core/core-signal.c +++ b/src/core/core-signal.c @@ -65,8 +65,11 @@ volatile sig_atomic_t signal_sigusr2_count = 0; */ void -signal_sighup_cb (int) +signal_sighup_cb (int signo) { + /* make C compiler happy */ + (void) signo; + signal_sighup_count++; } @@ -75,8 +78,11 @@ signal_sighup_cb (int) */ void -signal_sigquit_cb (int) +signal_sigquit_cb (int signo) { + /* make C compiler happy */ + (void) signo; + signal_sigquit_count++; } @@ -85,8 +91,11 @@ signal_sigquit_cb (int) */ void -signal_sigterm_cb (int) +signal_sigterm_cb (int signo) { + /* make C compiler happy */ + (void) signo; + signal_sigterm_count++; } @@ -95,8 +104,11 @@ signal_sigterm_cb (int) */ void -signal_sigusr1_cb (int) +signal_sigusr1_cb (int signo) { + /* make C compiler happy */ + (void) signo; + signal_sigusr1_count++; } @@ -105,8 +117,11 @@ signal_sigusr1_cb (int) */ void -signal_sigusr2_cb (int) +signal_sigusr2_cb (int signo) { + /* make C compiler happy */ + (void) signo; + signal_sigusr2_count++; } diff --git a/src/gui/curses/gui-curses-main.c b/src/gui/curses/gui-curses-main.c index 071d7d7a5..d8eabf1fc 100644 --- a/src/gui/curses/gui-curses-main.c +++ b/src/gui/curses/gui-curses-main.c @@ -150,8 +150,11 @@ gui_main_get_password (const char **prompt, char *password, int size) */ void -gui_main_signal_sigint (int) +gui_main_signal_sigint (int signo) { + /* make C compiler happy */ + (void) signo; + weechat_quit = 1; } @@ -253,8 +256,11 @@ gui_main_init () */ void -gui_main_signal_sigwinch (int) +gui_main_signal_sigwinch (int signo) { + /* make C compiler happy */ + (void) signo; + gui_signal_sigwinch_received = 1; }