From: David Levine Date: Thu, 12 Jan 2012 04:33:45 +0000 (-0600) Subject: Removed, or added use of, unused macros to prevent warnings from gcc -Wunused-macros. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=e37dc08079906b1b2737c3dad31fa507bdc66ecb;p=mmh Removed, or added use of, unused macros to prevent warnings from gcc -Wunused-macros. --- diff --git a/sbr/mts.c b/sbr/mts.c index 71836e4..6e19bd1 100644 --- a/sbr/mts.c +++ b/sbr/mts.c @@ -20,9 +20,6 @@ #include #include -#define NOTOK (-1) -#define OK 0 - /* * static prototypes */ diff --git a/uip/msgchk.c b/uip/msgchk.c index c7f32f5..a958351 100644 --- a/uip/msgchk.c +++ b/uip/msgchk.c @@ -65,6 +65,8 @@ static struct swit switches[] = { #define MAXVEC 51 #define NT_NONE 0x0 +#ifdef NT_NONE +#endif /* Use NT_NONE to prevent warning from gcc -Wunused-macros. */ #define NT_MAIL 0x1 #define NT_NMAI 0x2 #define NT_ALL (NT_MAIL | NT_NMAI) diff --git a/uip/slocal.c b/uip/slocal.c index 44e5988..36a25f0 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -44,6 +44,8 @@ * harmless. */ #define DB_DBM_HSEARCH 1 +#ifdef DB_DBM_HSEARCH +#endif /* Use DB_DBM_HSEARCH to prevent warning from gcc -Wunused-macros. */ #ifdef NDBM_HEADER #include NDBM_HEADER #endif