squelch compiler warning
authorHannes Gredler <hannes@gredler.at>
Wed, 20 Aug 2008 11:25:45 +0000 (13:25 +0200)
committerHannes Gredler <hannes@gredler.at>
Wed, 20 Aug 2008 11:25:45 +0000 (13:25 +0200)
Makefile.inc
src/ipcalc.h

index 1aef83a..a76b9dc 100644 (file)
@@ -185,7 +185,6 @@ CPPFLAGS += -DNDEBUG
 endif
 ifeq ($(NO_DEBUG_MESSAGES),1)
 CPPFLAGS +=    -DNODEBUG
-CPPFLAGS +=    -DUSED_FOR_DEBUG_ONLY='__attribute__((unused))'
 endif
 
 # a make function to quote "/" and "."
index 2178125..3fafd76 100644 (file)
@@ -49,7 +49,7 @@
 
 struct ipaddr_str {
     char buf[MAX(INET6_ADDRSTRLEN, INET_ADDRSTRLEN)];
-} USED_FOR_DEBUG_ONLY;
+} __attribute__((unused));
 
 /*
  * Macros for comparing and copying IP addresses