diff --git a/bin/verilator b/bin/verilator index 4e8bfb5c6..cf482226d 100755 --- a/bin/verilator +++ b/bin/verilator @@ -566,6 +566,17 @@ example C<-Werror-NOUNOPTFLAT>. Disable the specified warning message. +=item -Wno-lint + +Disable all lint related warning messages. This is equivelent to +"-Wno-CASEINCOMPLETE -Wno-CASEOVERLAP -Wno-CASEX -Wno-CMPCONST +-Wno-IMPLICIT -Wno-UNDRIVEN -Wno-UNSIGNED -Wno-UNUSED -Wno-VARHIDDEN +-Wno-WIDTH". + +It is strongly recommended you cleanup your code rather then using this +option, it is only intended to be use when running test-cases of code +received from third parties. + =item -x-assign 0 =item -x-assign 1 diff --git a/src/V3Error.cpp b/src/V3Error.cpp index e13bf5d67..556fa5d08 100644 --- a/src/V3Error.cpp +++ b/src/V3Error.cpp @@ -101,6 +101,13 @@ bool FileLine::warnOff(const string& msg, bool flag) { } } +void FileLine::warnLintOff(bool flag) { + for (int codei=V3ErrorCode::FIRST_WARN; codeiv3fatal("Unknown warning disabled: "<v3fatal("Unknown warning disabled: "<