mirror of
https://github.com/OISF/suricata.git
synced 2026-10-12 02:07:10 +00:00
util/port-interval-tree: suppress cppcheck false positives
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
*/
|
||||
static int SCPortIntervalCompareAndUpdate(const SCPortIntervalNode *a, SCPortIntervalNode *b)
|
||||
{
|
||||
DEBUG_VALIDATE_BUG_ON(a == NULL); // help cppcheck
|
||||
if (a->port2 > b->max) {
|
||||
b->max = a->port2;
|
||||
}
|
||||
@@ -48,6 +49,7 @@ static int SCPortIntervalCompareAndUpdate(const SCPortIntervalNode *a, SCPortInt
|
||||
}
|
||||
|
||||
// cppcheck-suppress nullPointerRedundantCheck
|
||||
// cppcheck-suppress ctunullpointer
|
||||
IRB_GENERATE(PI, SCPortIntervalNode, irb, SCPortIntervalCompareAndUpdate);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user