]> 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:04:27 +0000 (09:04 +0200)
lib/dns/tests/dnstest.c
lib/dns/tests/master_test.c

index e1d877f59c73c442d266b447ed5cc1dd550c6454..539e6439e7b377a3055512ecffc7833a8fdeac78 100644 (file)
@@ -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
index 85ef0f0008822861e9f3a3f3d01b4e17690aed19..df4d078abaa5d0f852ade8924ead9e4fab449d57 100644 (file)
@@ -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