From 814ee2c4cf0fba8da553a1a1a275750f9375a20c Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Thu, 17 Jan 2019 11:23:39 +0000 Subject: [PATCH] Fix more gcc 8 warnings. As warnings, these cause builds to fail when running the test suite. --- src/general.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/general.c b/src/general.c index cb923187..43cc7bd0 100644 --- a/src/general.c +++ b/src/general.c @@ -252,9 +252,17 @@ _getdns_check_dns_req_complete(getdns_dns_req *dns_req) #ifdef HAVE_LIBUNBOUND #ifdef HAVE_UNBOUND_EVENT_API static void +#if UNBOUND_VERSION_MAJOR > 1 || (UNBOUND_VERSION_MAJOR == 1 && UNBOUND_VERSION_MINOR >= 8) +ub_resolve_event_callback(void* arg, int rcode, void *pkt, int pkt_len, + int sec, char* why_bogus, int was_ratelimited) +{ + (void) was_ratelimited; +#else +static void ub_resolve_event_callback(void* arg, int rcode, void *pkt, int pkt_len, int sec, char* why_bogus) { +#endif getdns_network_req *netreq = (getdns_network_req *) arg; getdns_dns_req *dns_req = netreq->owner;