From 922588e83e655c24c879e4e20a08fbf61950a6c7 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Sat, 15 Nov 2014 00:55:20 -0800 Subject: [PATCH] [v9_9] fix false positive compiler warning a "pointer always evaluates to true" warning was blocking compilation of the radix ATF test when using --enable-developer with gcc 4.8.2. --- lib/isc/include/isc/radix.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/isc/include/isc/radix.h b/lib/isc/include/isc/radix.h index 1c1887f1d0..f6e50aa650 100644 --- a/lib/isc/include/isc/radix.h +++ b/lib/isc/include/isc/radix.h @@ -36,8 +36,9 @@ #define NETADDR_TO_PREFIX_T(na,pt,bits) \ do { \ + const void *p = na; \ memset(&(pt), 0, sizeof(pt)); \ - if((na) != NULL) { \ + if (p != NULL) { \ (pt).family = (na)->family; \ (pt).bitlen = (bits); \ if ((pt).family == AF_INET6) { \