* Fix color violations.
*/
if (IS_BLACK(item)) {
+ /* cppcheck-suppress nullPointerRedundantCheck symbolName=item */
parent = PARENT(item);
while (child != *rootp && IS_BLACK(child)) {
INSIST(sibling != NULL);
+ /* cppcheck-suppress nullPointerRedundantCheck symbolName=sibling */
if (IS_BLACK(LEFT(sibling)) &&
IS_BLACK(RIGHT(sibling))) {
MAKE_RED(sibling);
INSIST(sibling != NULL);
+ /* cppcheck-suppress nullPointerRedundantCheck symbolName=sibling */
if (IS_BLACK(LEFT(sibling)) &&
IS_BLACK(RIGHT(sibling))) {
MAKE_RED(sibling);
return (false);
}
+ /* cppcheck-suppress nullPointerRedundantCheck symbolName=node */
if ((DOWN(node) != NULL) && (!IS_ROOT(DOWN(node))))
return (false);
return (true);
}
+ /* cppcheck-suppress nullPointerRedundantCheck symbolName=node */
if (!check_black_distance_helper(LEFT(node), &dl))
return (false);
+ /* cppcheck-suppress nullPointerRedundantCheck symbolName=node */
if (!check_black_distance_helper(RIGHT(node), &dr))
return (false);
+ /* cppcheck-suppress nullPointerRedundantCheck symbolName=node */
if (!check_black_distance_helper(DOWN(node), &dd))
return (false);