mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +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) \
|
#define NETADDR_TO_PREFIX_T(na,pt,bits,is_ecs) \
|
||||||
do { \
|
do { \
|
||||||
|
const void *p = na; \
|
||||||
memset(&(pt), 0, sizeof(pt)); \
|
memset(&(pt), 0, sizeof(pt)); \
|
||||||
if((na) != NULL) { \
|
if (p != NULL) { \
|
||||||
(pt).family = (na)->family; \
|
(pt).family = (na)->family; \
|
||||||
(pt).bitlen = (bits); \
|
(pt).bitlen = (bits); \
|
||||||
if ((pt).family == AF_INET6) { \
|
if ((pt).family == AF_INET6) { \
|
||||||
|
Reference in New Issue
Block a user