From: Mark Andrews Date: Fri, 29 Oct 2021 21:21:02 +0000 (+1100) Subject: Suppress cppcheck warning X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b27cee14687e7fab044bbd446046c6d487c7abd;p=thirdparty%2Fbind9.git Suppress cppcheck warning Warning "Either the condition '(child)==((void*)0)' is redundant or there is possible null pointer dereference: child." Add "cppcheck-suppress nullPointerRedundantCheck symbolName=child" --- diff --git a/lib/dns/rbt.c b/lib/dns/rbt.c index 71d04c5f1e0..638914f9e95 100644 --- a/lib/dns/rbt.c +++ b/lib/dns/rbt.c @@ -2215,6 +2215,8 @@ deletefromlevel(dns_rbtnode_t *item, dns_rbtnode_t **rootp) { } } + /* cppcheck-suppress nullPointerRedundantCheck + * symbolName=child */ parent = PARENT(child); }