From d5eca41a715640d9af3b8229a8dec50fbad3fb22 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 21 Nov 2016 10:24:17 -0600 Subject: [PATCH] ipfw: disable more code to suppress compiler warnings Disabled code lead to unused variable warnings, so disable the variable code as well. --- src/source-ipfw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/source-ipfw.c b/src/source-ipfw.c index 97abf79006..05392828b3 100644 --- a/src/source-ipfw.c +++ b/src/source-ipfw.c @@ -515,7 +515,9 @@ TmEcode DecodeIPFWThreadDeinit(ThreadVars *tv, void *data) TmEcode IPFWSetVerdict(ThreadVars *tv, IPFWThreadVars *ptv, Packet *p) { uint32_t verdict; +#if 0 struct pollfd IPFWpoll; +#endif IPFWQueueVars *nq = NULL; SCEnter(); @@ -531,8 +533,10 @@ TmEcode IPFWSetVerdict(ThreadVars *tv, IPFWThreadVars *ptv, Packet *p) SCReturnInt(TM_ECODE_FAILED); } +#if 0 IPFWpoll.fd = nq->fd; IPFWpoll.events = POLLWRNORM; +#endif if (PACKET_TEST_ACTION(p, ACTION_DROP)) { verdict = IPFW_DROP;