errmsg: Made the 'unsigned division' a style error
This commit is contained in:
parent
980b10bfc9
commit
03888046d8
|
@ -216,7 +216,7 @@ public:
|
|||
}
|
||||
static bool udivWarning(const Settings &s)
|
||||
{
|
||||
return s._showAll;
|
||||
return s._showAll & s._checkCodingStyle;
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
@ -82,7 +82,7 @@ int main()
|
|||
err.push_back(Message("ifNoAction", Message::STYLE, "Found redundant if condition - 'if (condition);'"));
|
||||
err.push_back(Message("sprintfOverlappingData", 0, "Overlapping data buffer %1", "varname"));
|
||||
err.push_back(Message("udivError", 0, "Unsigned division. The result will be wrong."));
|
||||
err.push_back(Message("udivWarning", Message::ALL, "Warning: Division with signed and unsigned operators"));
|
||||
err.push_back(Message("udivWarning", Message::STYLE | Message::ALL, "Warning: Division with signed and unsigned operators"));
|
||||
|
||||
// Generate code..
|
||||
std::cout << "Generate code.." << std::endl;
|
||||
|
|
Loading…
Reference in New Issue