changeset: 6468:c60fed102d79
user: Kevin McCarthy <[email protected]>
date: Wed Jul 22 19:23:12 2015 -0700
link: http://dev.mutt.org/hg/mutt/rev/c60fed102d79
Fix a few small compiler warnings. (See #3638)
In certain configurations, unused variables and labels were causing
warnings.
Add a missing "#include <netinet/in.h>" to pop_lib.c.
diffs (43 lines):
diff -r 704e0622cc67 -r c60fed102d79 imap/message.c
--- a/imap/message.c Tue Jul 21 12:41:13 2015 -0700
+++ b/imap/message.c Wed Jul 22 19:23:12 2015 -0700
@@ -60,7 +60,6 @@
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 retval = -1;
#if USE_HCACHE
+ char buf[LONG_STRING];
unsigned int *uid_validity = NULL;
unsigned int *puidnext = NULL;
unsigned int uidnext = 0;
diff -r 704e0622cc67 -r c60fed102d79 keymap.c
--- a/keymap.c Tue Jul 21 12:41:13 2015 -0700
+++ b/keymap.c Wed Jul 22 19:23:12 2015 -0700
@@ -456,7 +456,9 @@
if (menu == MENU_EDITOR && tmp.ch == -2)
continue;
+#ifdef USE_IMAP
gotkey:
+#endif
LastKey = tmp.ch;
if (LastKey < 0)
return -1;
diff -r 704e0622cc67 -r c60fed102d79 pop_lib.c
--- a/pop_lib.c Tue Jul 21 12:41:13 2015 -0700
+++ b/pop_lib.c Wed Jul 22 19:23:12 2015 -0700
@@ -33,6 +33,7 @@
#include <ctype.h>
#include <netdb.h>
#include <errno.h>
+#include <netinet/in.h>
/* given an POP mailbox name, return host, port, username and password */
int pop_parse_path (const char* path, ACCOUNT* acct)