From 7a0d53448d87ad3d141050e09422e4e0597d8e0a Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Tue, 26 Dec 2017 20:14:24 +0100 Subject: [PATCH] tm-threads: fix build warning in afl mode --- src/tm-threads.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tm-threads.c b/src/tm-threads.c index 522b0c9475..3d9b95ebb7 100644 --- a/src/tm-threads.c +++ b/src/tm-threads.c @@ -268,6 +268,8 @@ static int TmThreadTimeoutLoop(ThreadVars *tv, TmSlot *s) */ +#ifndef AFLFUZZ_PCAP_RUNMODE + static void *TmThreadsSlotPktAcqLoop(void *td) { ThreadVars *tv = (ThreadVars *)td; @@ -397,6 +399,8 @@ error: return NULL; } +#endif /* NO AFLFUZZ_PCAP_RUNMODE */ + #ifdef AFLFUZZ_PCAP_RUNMODE /** \brief simplified loop to speed up AFL * -- 2.47.2