diff --git a/include/verilated_fst_sc.h b/include/verilated_fst_sc.h index 872fe2e0b..9c7c07c4c 100644 --- a/include/verilated_fst_sc.h +++ b/include/verilated_fst_sc.h @@ -51,7 +51,7 @@ public: } spTrace()->set_time_resolution(sc_get_time_resolution().to_string()); } - ~VerilatedFstSc() override { close(); } + virtual ~VerilatedFstSc() /*override*/ { close(); } // METHODS /// Called by SystemC simulate() diff --git a/include/verilated_vcd_sc.h b/include/verilated_vcd_sc.h index 5610fcd9a..6f8edf3a1 100644 --- a/include/verilated_vcd_sc.h +++ b/include/verilated_vcd_sc.h @@ -54,7 +54,7 @@ public: spTrace()->set_time_resolution(sc_get_time_resolution().to_string()); } /// Destruct, flush, and close the dump - ~VerilatedVcdSc() override { close(); } + virtual ~VerilatedVcdSc() /*override*/ { close(); } // METHODS - for SC kernel // Called by SystemC simulate()