Fix GCC warnings
This commit is contained in:
parent
aa39d020d8
commit
816c5e0dc9
|
|
@ -107,7 +107,7 @@ class CUseDTypeVisitor : public AstNVisitor {
|
|||
public:
|
||||
// CONSTRUCTORS
|
||||
explicit CUseDTypeVisitor(AstNodeModule* nodep, CUseState& stater)
|
||||
: m_stater{stater} {
|
||||
: m_stater{stater} { // Need () or GCC 4.8 false warning
|
||||
iterate(nodep);
|
||||
}
|
||||
virtual ~CUseDTypeVisitor() override {}
|
||||
|
|
|
|||
|
|
@ -310,11 +310,6 @@ bool FileLine::warnOff(const string& msg, bool flag) {
|
|||
V3ErrorCode code(msg.c_str());
|
||||
if (code < V3ErrorCode::EC_FIRST_WARN) {
|
||||
return false;
|
||||
#ifndef _V3ERROR_NO_GLOBAL_
|
||||
} else if (v3Global.opt.lintOnly() // Lint mode is allowed to suppress some errors
|
||||
&& code < V3ErrorCode::EC_MIN) {
|
||||
return false;
|
||||
#endif
|
||||
} else {
|
||||
warnOff(code, flag);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue