compile with -ansi -pedantic on gcc
greatly helps portability ...
This commit is contained in:
parent
96eaeb428d
commit
256a147945
|
@ -6,7 +6,7 @@ AM_MAINTAINER_MODE
|
||||||
|
|
||||||
AM_PROG_CC_STDC
|
AM_PROG_CC_STDC
|
||||||
if test "$GCC" = yes; then
|
if test "$GCC" = yes; then
|
||||||
CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wstrict-prototypes"
|
CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wstrict-prototypes -ansi -pedantic -Wno-overlength-strings"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
||||||
|
|
|
@ -160,24 +160,24 @@ struct imap_cmd_refcounted {
|
||||||
|
|
||||||
enum CAPABILITY {
|
enum CAPABILITY {
|
||||||
NOLOGIN = 0,
|
NOLOGIN = 0,
|
||||||
UIDPLUS,
|
|
||||||
LITERALPLUS,
|
|
||||||
NAMESPACE,
|
|
||||||
#ifdef HAVE_LIBSSL
|
#ifdef HAVE_LIBSSL
|
||||||
CRAM,
|
CRAM,
|
||||||
STARTTLS,
|
STARTTLS,
|
||||||
#endif
|
#endif
|
||||||
|
UIDPLUS,
|
||||||
|
LITERALPLUS,
|
||||||
|
NAMESPACE
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *cap_list[] = {
|
static const char *cap_list[] = {
|
||||||
"LOGINDISABLED",
|
"LOGINDISABLED",
|
||||||
"UIDPLUS",
|
|
||||||
"LITERAL+",
|
|
||||||
"NAMESPACE",
|
|
||||||
#ifdef HAVE_LIBSSL
|
#ifdef HAVE_LIBSSL
|
||||||
"AUTH=CRAM-MD5",
|
"AUTH=CRAM-MD5",
|
||||||
"STARTTLS",
|
"STARTTLS",
|
||||||
#endif
|
#endif
|
||||||
|
"UIDPLUS",
|
||||||
|
"LITERAL+",
|
||||||
|
"NAMESPACE"
|
||||||
};
|
};
|
||||||
|
|
||||||
#define RESP_OK 0
|
#define RESP_OK 0
|
||||||
|
|
|
@ -54,7 +54,7 @@ static const char *subdirs[] = { "cur", "new" };
|
||||||
static struct flock lck;
|
static struct flock lck;
|
||||||
static DBT key, value;
|
static DBT key, value;
|
||||||
|
|
||||||
static inline int
|
static int
|
||||||
convert( const char *box, int altmap )
|
convert( const char *box, int altmap )
|
||||||
{
|
{
|
||||||
DB *db;
|
DB *db;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user