We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 228f596 commit 6c3b7c1Copy full SHA for 6c3b7c1
1 file changed
lib/checkbufferoverrun.cpp
@@ -85,6 +85,8 @@ void CheckBufferOverrun::arrayIndexOutOfBoundsError(const Token *tok, const Arra
85
}
86
87
if (condition != nullptr) {
88
+ if (!_settings->isEnabled("warning"))
89
+ return;
90
errmsg << " Otherwise condition '" << condition->expressionString() << "' is redundant.";
91
std::list<const Token *> callstack;
92
callstack.push_back(tok);
0 commit comments