1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 19: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:
Aaron Jones
2025-03-09 14:41:48 +00:00
committed by Sébastien Helleu
parent 20b2bdedc2
commit f5038bccbc
320 changed files with 909 additions and 909 deletions
+3 -3
View File
@@ -182,7 +182,7 @@ hook_timer (struct t_weechat_plugin *plugin, long interval, int align_second,
*/
void
hook_timer_check_system_clock ()
hook_timer_check_system_clock (void)
{
time_t now;
long diff_time;
@@ -222,7 +222,7 @@ hook_timer_check_system_clock ()
*/
int
hook_timer_get_time_to_next ()
hook_timer_get_time_to_next (void)
{
struct t_hook *ptr_hook;
int found, timeout;
@@ -300,7 +300,7 @@ end:
*/
void
hook_timer_exec ()
hook_timer_exec (void)
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;