From c7ed73e249e682f312dae61dae85d35d7fc528b5 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 3 Feb 2023 18:47:37 -0500 Subject: [PATCH] Fix MSVC++ compile warning --- src/V3AstNodeExpr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3AstNodeExpr.h b/src/V3AstNodeExpr.h index e14842bdb..ea7f04825 100644 --- a/src/V3AstNodeExpr.h +++ b/src/V3AstNodeExpr.h @@ -4403,8 +4403,8 @@ public: case ATOOCT: return "atooct"; case ATOBIN: return "atobin"; case ATOREAL: return "atoreal"; - default: V3ERROR_NA; } + V3ERROR_NA_RETURN(""); } string emitVerilog() override { return "%l." + name() + "()"; } string emitC() override { @@ -4414,8 +4414,8 @@ public: case ATOOCT: return "VL_ATOI_N(%li, 8)"; case ATOBIN: return "VL_ATOI_N(%li, 2)"; case ATOREAL: return "std::atof(%li.c_str())"; - default: V3ERROR_NA; } + V3ERROR_NA_RETURN(""); } bool cleanOut() const override { return true; } bool cleanLhs() const override { return true; }