From 80d58c838b35d93e5f6e3bd8269a9a850e3b098a Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Wed, 22 Jul 2015 19:23:12 -0700 Subject: [PATCH] Fix a few small compiler warnings. (See #3638) In certain configurations, unused variables and labels were causing warnings. Add a missing "#include " to pop_lib.c. --- imap/message.c | 2 +- keymap.c | 2 ++ pop_lib.c | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/imap/message.c b/imap/message.c index 09e14633c..387738181 100644 --- a/imap/message.c +++ b/imap/message.c @@ -60,7 +60,6 @@ static char* msg_parse_flags (IMAP_HEADER* h, char* s); int imap_read_headers (IMAP_DATA* idata, int msgbegin, int msgend) { CONTEXT* ctx; - char buf[LONG_STRING]; char *hdrreq = NULL; FILE *fp; char tempfile[_POSIX_PATH_MAX]; @@ -75,6 +74,7 @@ int imap_read_headers (IMAP_DATA* idata, int msgbegin, int msgend) int retval = -1; #if USE_HCACHE + char buf[LONG_STRING]; unsigned int *uid_validity = NULL; unsigned int *puidnext = NULL; unsigned int uidnext = 0; diff --git a/keymap.c b/keymap.c index 9dc87f071..1710b17d1 100644 --- a/keymap.c +++ b/keymap.c @@ -456,7 +456,9 @@ int km_dokey (int menu) if (menu == MENU_EDITOR && tmp.ch == -2) continue; +#ifdef USE_IMAP gotkey: +#endif LastKey = tmp.ch; if (LastKey < 0) return -1; diff --git a/pop_lib.c b/pop_lib.c index 7082d8dd9..94d1f835e 100644 --- a/pop_lib.c +++ b/pop_lib.c @@ -33,6 +33,7 @@ #include #include #include +#include /* given an POP mailbox name, return host, port, username and password */ int pop_parse_path (const char* path, ACCOUNT* acct) -- 2.49.0