Add -Wwarn-style, -Wno-style, and DEFPARAM warnings

This commit is contained in:
Wilson Snyder
2010-12-25 15:13:56 -05:00
parent 7dee344ea9
commit 323c96f42f
9 changed files with 119 additions and 7 deletions
+7
View File
@@ -791,6 +791,10 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char
else if ( !strncmp (sw, "-Wno-",5) ) {
if (!strcmp (sw, "-Wno-lint")) {
FileLine::globalWarnLintOff(true);
FileLine::globalWarnStyleOff(true);
}
else if (!strcmp (sw, "-Wno-style")) {
FileLine::globalWarnStyleOff(true);
}
else {
string msg = sw+strlen("-Wno-");
@@ -803,6 +807,9 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char
if (!strcmp (sw, "-Wwarn-lint")) {
FileLine::globalWarnLintOff(false);
}
else if (!strcmp (sw, "-Wwarn-style")) {
FileLine::globalWarnStyleOff(false);
}
else {
string msg = sw+strlen("-Wwarn-");
if (!(FileLine::globalWarnOff(msg, false))) {