From 816c5e0dc9dc7ade0ada5091e712a9d1284d2742 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 19 Aug 2020 08:20:06 -0400 Subject: [PATCH] Fix GCC warnings --- src/V3CUse.cpp | 2 +- src/V3FileLine.cpp | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/V3CUse.cpp b/src/V3CUse.cpp index 0cabf7526..8e16179de 100644 --- a/src/V3CUse.cpp +++ b/src/V3CUse.cpp @@ -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 {} diff --git a/src/V3FileLine.cpp b/src/V3FileLine.cpp index 42a68f2e8..118292375 100644 --- a/src/V3FileLine.cpp +++ b/src/V3FileLine.cpp @@ -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;