]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/http: fix compile warning in body tests
authorVictor Julien <vjulien@oisf.net>
Thu, 28 Mar 2024 09:43:46 +0000 (10:43 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 18 Apr 2024 08:30:21 +0000 (10:30 +0200)
When --enable-unittests w/o --enable-debug is used.

(cherry picked from commit e651cf922a02f5882593a23bd2ed9327a5e8d2cc)

src/tests/detect-http-client-body.c
src/tests/detect-http-server-body.c

index 2532b4a7ab0cb996220a26245d83ee76447f2e2d..59fb161918aa60cc42c55f8087e10b7815c2e898 100644 (file)
@@ -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;
index 3b63794930172f59ad48c3e80fe483367eb566a8..960beae6d89790f528ce1f63b5facaad289f0c73 100644 (file)
@@ -117,6 +117,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;