]> 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>
Mon, 8 Apr 2024 12:53:38 +0000 (14:53 +0200)
When --enable-unittests w/o --enable-debug is used.

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

index c87d66756b9f47fe537c9def902618a722fdc65b..bbeb4d33bde86e91f3ac6d3242e6ab374eb5a77f 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 5f102ee9bb9e1929d58b71cc7a9bf9423c3a5e2d..fe64d8dd2b044e6419f4c777c1d9183b28e05834 100644 (file)
@@ -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;