]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/iponly: fix compile warning 10895/head
authorVictor Julien <vjulien@oisf.net>
Wed, 17 Apr 2024 22:28:50 +0000 (00:28 +0200)
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.

src/detect-engine-iponly.c

index 740e00d0313fce76e4143218c59b63f625d27fdd..33ad3f30323319916a9ef3f34609d4271ea780cc 100644 (file)
@@ -506,6 +506,7 @@ static void IPOnlyCIDRListPrint(IPOnlyCIDRItem *tmphead)
                    (tmphead->negated) ? "yes":"no",
                    inet_ntoa(*(struct in_addr*)&tmphead->ip[0]),
                    tmphead->signum);
+        (void)i;
         tmphead = tmphead->next;
     }
 }