diff options
author | Kevin McCarthy <kevin@8t8.us> | 2022-11-04 13:18:51 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2022-11-04 13:29:33 -0700 |
commit | db16ce472e522268bcd38d06f1ef9f1d6efc0e92 (patch) | |
tree | 475e49a2b1de0a3f25a2341c44587a4a9e36ae17 | |
parent | 0838a8f458b45ccf568c83343fec57e5d064eb21 (diff) |
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
-rw-r--r-- | autocrypt/autocrypt_acct_menu.c | 2 | ||||
-rw-r--r-- | background.c | 2 | ||||
-rw-r--r-- | charset.c | 2 | ||||
-rw-r--r-- | curs_lib.c | 6 | ||||
-rw-r--r-- | menu.c | 2 | ||||
-rw-r--r-- | monitor.c | 4 | ||||
-rw-r--r-- | 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; @@ -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; @@ -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); @@ -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; @@ -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) { @@ -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; |