Add -Wall; move VARHIDDEN to style warnings

This commit is contained in:
Wilson Snyder
2010-12-25 15:28:13 -05:00
parent 323c96f42f
commit 285277a50b
6 changed files with 29 additions and 17 deletions
+4
View File
@@ -772,6 +772,10 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char
showVersion(false);
exit(0);
}
else if ( !strcmp (sw, "-Wall") ) {
FileLine::globalWarnLintOff(false);
FileLine::globalWarnStyleOff(false);
}
else if ( !strncmp (sw, "-Werror-",strlen("-Werror-")) ) {
string msg = sw+strlen("-Werror-");
V3ErrorCode code (msg.c_str());