1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 10:43: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
+2 -2
View File
@@ -135,7 +135,7 @@ spell_enchant_dict_describe_cb (const char *lang_tag,
*/
void
spell_command_speller_list_dicts ()
spell_command_speller_list_dicts (void)
{
#ifndef USE_ENCHANT
char *country, *lang, *pos, *iso;
@@ -478,7 +478,7 @@ spell_command_cb (const void *pointer, void *data,
*/
void
spell_command_init ()
spell_command_init (void)
{
weechat_hook_command (
"spell",