Null pointer: Changed 'possible null pointer dereference - otherwise condition is redundant' to warning
This commit is contained in:
parent
75e20a996d
commit
abd536b84c
|
@ -1104,9 +1104,13 @@ void CheckNullPointer::nullPointerByCheckAndDeRef()
|
|||
void CheckNullPointer::nullPointer()
|
||||
{
|
||||
nullPointerLinkedList();
|
||||
nullPointerStructByDeRefAndChec();
|
||||
nullPointerByDeRefAndChec();
|
||||
nullPointerByCheckAndDeRef();
|
||||
|
||||
if (_settings->isEnabled("warning")) {
|
||||
nullPointerStructByDeRefAndChec();
|
||||
nullPointerByDeRefAndChec();
|
||||
nullPointerByCheckAndDeRef();
|
||||
}
|
||||
|
||||
nullPointerDefaultArgument();
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ private:
|
|||
errout.str("");
|
||||
|
||||
Settings settings;
|
||||
settings.addEnabled("style");
|
||||
settings.addEnabled("warning");
|
||||
settings.inconclusive = inconclusive;
|
||||
|
||||
// Tokenize..
|
||||
|
|
Loading…
Reference in New Issue