mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
[master] 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.
This commit is contained in:
@@ -34,8 +34,9 @@
|
||||
|
||||
#define NETADDR_TO_PREFIX_T(na,pt,bits,is_ecs) \
|
||||
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) { \
|
||||
|
Reference in New Issue
Block a user