From f80c167d65b284ea03835d3a5a0e3584b7c95377 Mon Sep 17 00:00:00 2001 From: Anthony Donlon <4056887+donlon@users.noreply.github.com> Date: Thu, 18 Jan 2024 08:30:42 +0800 Subject: [PATCH] Fix warnings in verilated_sc_trace.h for Clang. No functional change. (#4807) (#4827) --- configure.ac | 1 - include/verilated_sc_trace.h | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7679d98e6..1aa353ed7 100644 --- a/configure.ac +++ b/configure.ac @@ -424,7 +424,6 @@ m4_foreach([cflag],[ [-Wno-c++11-narrowing], [-Wno-constant-logical-operand], [-Wno-non-pod-varargs], - [-Wno-overloaded-virtual], [-Wno-parentheses-equality], [-Wno-shadow], [-Wno-sign-compare], diff --git a/include/verilated_sc_trace.h b/include/verilated_sc_trace.h index a5d775ee4..f9a25a75c 100644 --- a/include/verilated_sc_trace.h +++ b/include/verilated_sc_trace.h @@ -102,6 +102,8 @@ protected: // Phase callback is automatically unregistered in ~sc_object(). Only the trace file is // needed to be removed here if (m_traceFileAdded) simcontext()->remove_trace_file(this); +#else + (void)m_traceFileAdded; #endif #ifdef _VL_HAVE_SYSTEMC_STAGE_CALLBACK sc_unregister_stage_callback(*this, SC_PRE_TIMESTEP | SC_POST_UPDATE); @@ -184,6 +186,7 @@ private: // SystemC 2.1.v1 void write_comment(const std::string&) override {} + void trace(sc_core::sc_trace_file*) const override {} void trace(const unsigned int&, const std::string&, const char**) override {} #define DECL_TRACE_METHOD_A(tp) \