CLI: enable warning messages by --enable=style

This commit is contained in:
Daniel Marjamki 2013-02-02 15:48:19 +01:00
parent abd536b84c
commit fc58c6018c
1 changed files with 2 additions and 1 deletions

View File

@ -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");
} }