Commit 280e8701 authored by Kevin J. McCarthy's avatar Kevin J. McCarthy

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.
parent ecbd6cec
......@@ -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;
......
......@@ -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;
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment