Add --Wno-fatal to turn off abort on warnings.

This commit is contained in:
Wilson Snyder
2011-03-22 18:09:39 -04:00
parent df0aa483ce
commit fb70a1f4ab
8 changed files with 56 additions and 1 deletions
+4
View File
@@ -831,6 +831,9 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char
else if (!strcmp (sw, "-Wno-style")) {
FileLine::globalWarnStyleOff(true);
}
else if (!strcmp (sw, "-Wno-fatal")) {
m_warnFatal = false;
}
else {
string msg = sw+strlen("-Wno-");
if (!(FileLine::globalWarnOff(msg, true))) {
@@ -1080,6 +1083,7 @@ V3Options::V3Options() {
m_makeDepend = true;
m_makePhony = false;
m_outFormatOk = false;
m_warnFatal = true;
m_pinsBv = 65;
m_profileCFuncs = false;
m_preprocOnly = false;