From e37dc08079906b1b2737c3dad31fa507bdc66ecb Mon Sep 17 00:00:00 2001 From: David Levine Date: Wed, 11 Jan 2012 22:33:45 -0600 Subject: [PATCH] Removed, or added use of, unused macros to prevent warnings from gcc -Wunused-macros. --- sbr/mts.c | 3 --- uip/msgchk.c | 2 ++ uip/slocal.c | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) 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 -- 1.7.10.4