]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
dnstap io, fix compile warning when compiled with threading enabled.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 29 Jan 2020 15:22:32 +0000 (16:22 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 29 Jan 2020 15:22:32 +0000 (16:22 +0100)
dnstap/dtstream.c

index 9f7345b3afb6ec4f1d02a8c1228bcd6018a5b7a0..2fd99a05cf0d3473eb47073c522dbc4ffc631707 100644 (file)
@@ -1302,6 +1302,7 @@ int dt_io_thread_start(struct dt_io_thread* dtio, void* event_base_nothr)
        dtio->started = 1;
 #ifndef THREADS_DISABLED
        ub_thread_create(&dtio->tid, dnstap_io, dtio);
+       (void)event_base_nothr;
 #else
        dtio->event_base = event_base_nothr;
        dtio_setup_cmd(dtio);