CLI: enable warning messages by --enable=style
This commit is contained in:
parent
abd536b84c
commit
fc58c6018c
|
@ -317,8 +317,9 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
|
||||||
PrintMessage(errmsg);
|
PrintMessage(errmsg);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// when "style" is enabled, also enable "performance" and "portability"
|
// when "style" is enabled, also enable "warning", "performance" and "portability"
|
||||||
if (_settings->isEnabled("style")) {
|
if (_settings->isEnabled("style")) {
|
||||||
|
_settings->addEnabled("warning");
|
||||||
_settings->addEnabled("performance");
|
_settings->addEnabled("performance");
|
||||||
_settings->addEnabled("portability");
|
_settings->addEnabled("portability");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue