From 26db6202a5168e32caf5545d3b673b33a75051e0 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 8 Dec 2016 23:15:56 +0100 Subject: [PATCH] -Werror fixes for clang --- src/context.c | 2 +- src/request-internal.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/context.c b/src/context.c index a3c7aec4..6de1201c 100644 --- a/src/context.c +++ b/src/context.c @@ -3472,7 +3472,7 @@ _getdns_context_local_namespace_resolve( getdns_context *context = dnsreq->context; host_name_addrs *hnas; uint8_t lookup[256]; - getdns_list empty_list = { 0 }; + getdns_list empty_list = { 0, 0, NULL, { NULL, {{ NULL, NULL, NULL }}}}; getdns_bindata bindata; getdns_list *jaa; size_t i; diff --git a/src/request-internal.c b/src/request-internal.c index 797fde50..fc8f5e12 100644 --- a/src/request-internal.c +++ b/src/request-internal.c @@ -65,20 +65,20 @@ getdns_dict dnssec_ok_checking_disabled_spc = { { RBTREE_NULL, 0, (int (*)(const void *, const void *)) strcmp }, - { 0 } + { NULL, {{ NULL, NULL, NULL }}} }; getdns_dict *dnssec_ok_checking_disabled = &dnssec_ok_checking_disabled_spc; getdns_dict dnssec_ok_checking_disabled_roadblock_avoidance_spc = { { RBTREE_NULL, 0, (int (*)(const void *, const void *)) strcmp }, - { 0 } + { NULL, {{ NULL, NULL, NULL }}} }; getdns_dict *dnssec_ok_checking_disabled_roadblock_avoidance = &dnssec_ok_checking_disabled_roadblock_avoidance_spc; getdns_dict dnssec_ok_checking_disabled_avoid_roadblocks_spc = { { RBTREE_NULL, 0, (int (*)(const void *, const void *)) strcmp }, - { 0 } + { NULL, {{ NULL, NULL, NULL }}} }; getdns_dict *dnssec_ok_checking_disabled_avoid_roadblocks = &dnssec_ok_checking_disabled_avoid_roadblocks_spc;