From: Ondřej Surý Date: Fri, 27 Sep 2019 09:40:00 +0000 (+0200) Subject: Instead of declaring unused va_list, just don't declare it at all X-Git-Tag: v9.15.6~72^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=269d507cccab454bf221f03d83b6882668b41c33;p=thirdparty%2Fbind9.git Instead of declaring unused va_list, just don't declare it at all --- diff --git a/lib/dns/tests/dnstest.c b/lib/dns/tests/dnstest.c index e1d877f59c7..539e6439e7b 100644 --- a/lib/dns/tests/dnstest.c +++ b/lib/dns/tests/dnstest.c @@ -475,11 +475,8 @@ dns_test_getdata(const char *file, unsigned char *buf, static void nullmsg(dns_rdatacallbacks_t *cb, const char *fmt, ...) { - va_list ap; - UNUSED(cb); UNUSED(fmt); - UNUSED(ap); } isc_result_t diff --git a/lib/dns/tests/master_test.c b/lib/dns/tests/master_test.c index 85ef0f00088..df4d078abaa 100644 --- a/lib/dns/tests/master_test.c +++ b/lib/dns/tests/master_test.c @@ -63,11 +63,8 @@ _teardown(void **state) { static void nullmsg(dns_rdatacallbacks_t *cb, const char *fmt, ...) { - va_list ap; - UNUSED(cb); UNUSED(fmt); - UNUSED(ap); } #define BUFLEN 255