From 65e1c3791360c035aeea5acba235bc4fe6315bd4 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 28 Mar 2024 10:43:46 +0100 Subject: [PATCH] detect/http: fix compile warning in body tests When --enable-unittests w/o --enable-debug is used. (cherry picked from commit e651cf922a02f5882593a23bd2ed9327a5e8d2cc) --- src/tests/detect-http-client-body.c | 1 + src/tests/detect-http-server-body.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/tests/detect-http-client-body.c b/src/tests/detect-http-client-body.c index c87d66756b..bbeb4d33bd 100644 --- a/src/tests/detect-http-client-body.c +++ b/src/tests/detect-http-client-body.c @@ -157,6 +157,7 @@ static int RunTest (struct TestSteps *steps, const char *sig, const char *yaml) int i = 0; while (b->input != NULL) { SCLogDebug("chunk %p %d", b, i); + (void)i; Packet *p = UTHBuildPacket(NULL, 0, IPPROTO_TCP); FAIL_IF_NULL(p); p->flow = &f; diff --git a/src/tests/detect-http-server-body.c b/src/tests/detect-http-server-body.c index 29340fb4aa..d9723d4a9d 100644 --- a/src/tests/detect-http-server-body.c +++ b/src/tests/detect-http-server-body.c @@ -119,6 +119,7 @@ static int RunTest(struct TestSteps *steps, const char *sig, const char *yaml) int i = 0; while (b->input != NULL) { SCLogDebug("chunk %p %d", b, i); + (void)i; Packet *p = UTHBuildPacket(NULL, 0, IPPROTO_TCP); FAIL_IF_NULL(p); p->flow = &f; -- 2.47.2