]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Instead of declaring unused va_list, just don't declare it at all
authorOndřej Surý <ondrej@sury.org>
Fri, 27 Sep 2019 09:40:00 +0000 (11:40 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 3 Oct 2019 07:50:26 +0000 (09:50 +0200)
(cherry picked from commit 269d507cccab454bf221f03d83b6882668b41c33)

lib/dns/tests/dnstest.c
lib/dns/tests/master_test.c

index 689016de7eef9bd4570b88494a9be3fa58396213..ce297b41bb839b8b9e8c4ac05b183e6a972a5df1 100644 (file)
@@ -469,11 +469,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
index fb48ec84f705b54221bf8f573673be25cab6df75..ebccaf6c4e93c804678cc0dafb714a7001a282c3 100644 (file)
@@ -67,11 +67,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