From db16ce472e522268bcd38d06f1ef9f1d6efc0e92 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Fri, 4 Nov 2022 13:18:51 -0700 Subject: Add explicit void to 0-parameter function definitions. These are the errors output with: -Werror=implicit-int -Werror=implicit-function-declaration -Werror=int-conversion -Werror=strict-prototypes -Werror=old-style-definition --- autocrypt/autocrypt_acct_menu.c | 2 +- background.c | 2 +- charset.c | 2 +- curs_lib.c | 6 +++--- menu.c | 2 +- monitor.c | 4 ++-- pattern.c | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/autocrypt/autocrypt_acct_menu.c b/autocrypt/autocrypt_acct_menu.c index 80a82362..76bab1d2 100644 --- a/autocrypt/autocrypt_acct_menu.c +++ b/autocrypt/autocrypt_acct_menu.c @@ -127,7 +127,7 @@ static void account_entry (char *s, size_t slen, MUTTMENU *m, int num) entry, MUTT_FORMAT_ARROWCURSOR); } -static MUTTMENU *create_menu () +static MUTTMENU *create_menu (void) { MUTTMENU *menu = NULL; AUTOCRYPT_ACCOUNT **accounts = NULL; diff --git a/background.c b/background.c index 37a3d335..d3975fa1 100644 --- a/background.c +++ b/background.c @@ -467,7 +467,7 @@ static void update_bg_menu (MUTTMENU *menu) } } -static MUTTMENU *create_bg_menu () +static MUTTMENU *create_bg_menu (void) { MUTTMENU *menu = NULL; BACKGROUND_PROCESS *process; diff --git a/charset.c b/charset.c index 9b46b574..55961a7c 100644 --- a/charset.c +++ b/charset.c @@ -312,7 +312,7 @@ int mutt_chscmp (const char *s, const char *chs) a > b ? chs : buffer, MIN(a,b)); } -char *mutt_get_default_charset () +char *mutt_get_default_charset (void) { static char fcharset[SHORT_STRING]; const char *c = AssumedCharset; diff --git a/curs_lib.c b/curs_lib.c index 2f5d0282..efa76ce6 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -596,7 +596,7 @@ static void error_history_dump (FILE *f) } while (cur != ErrorHistory.last); } -void mutt_error_history_display () +void mutt_error_history_display (void) { static int in_process = 0; BUFFER *t = NULL; @@ -790,7 +790,7 @@ out: mutt_clear_error (); } -void mutt_init_windows () +void mutt_init_windows (void) { MuttHelpWindow = safe_calloc (sizeof (mutt_window_t), 1); MuttIndexWindow = safe_calloc (sizeof (mutt_window_t), 1); @@ -801,7 +801,7 @@ void mutt_init_windows () #endif } -void mutt_free_windows () +void mutt_free_windows (void) { FREE (&MuttHelpWindow); FREE (&MuttIndexWindow); diff --git a/menu.c b/menu.c index f83356c4..2bd89adb 100644 --- a/menu.c +++ b/menu.c @@ -859,7 +859,7 @@ void mutt_set_menu_redraw_full (int menu_type) mutt_set_current_menu_redraw_full (); } -void mutt_current_menu_redraw () +void mutt_current_menu_redraw (void) { MUTTMENU *current_menu; diff --git a/monitor.c b/monitor.c index 9653021d..63f0eb3b 100644 --- a/monitor.c +++ b/monitor.c @@ -105,7 +105,7 @@ static int mutt_poll_fd_remove(int fd) return 0; } -static int monitor_init () +static int monitor_init (void) { if (INotifyFd == -1) { @@ -132,7 +132,7 @@ static int monitor_init () return 0; } -static void monitor_check_free () +static void monitor_check_free (void) { if (!Monitor && INotifyFd != -1) { diff --git a/pattern.c b/pattern.c index 28a33d81..c6ee5366 100644 --- a/pattern.c +++ b/pattern.c @@ -2212,7 +2212,7 @@ static void make_pattern_entry (char *s, size_t slen, MUTTMENU *menu, int num) entry, MUTT_FORMAT_ARROWCURSOR); } -static MUTTMENU *create_pattern_menu () +static MUTTMENU *create_pattern_menu (void) { MUTTMENU *menu = NULL; PATTERN_ENTRY *entries = NULL; -- cgit v1.2.3