From 4b3731d31805324b72ca5bdb62c9ed6abb031db5 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 23 Nov 2022 18:50:31 -0500 Subject: [PATCH] Remove env from main() to be C++11 compatible --- docs/guide/connecting.rst | 2 +- docs/guide/example_cc.rst | 2 +- docs/guide/faq.rst | 4 ++-- examples/make_hello_c/sim_main.cpp | 9 +++++---- examples/make_hello_sc/sc_main.cpp | 7 ++++--- examples/make_protect_lib/sim_main.cpp | 4 ++-- examples/make_tracing_c/sim_main.cpp | 4 ++-- src/Verilator.cpp | 2 +- src/VlcMain.cpp | 2 +- test_regress/driver.pl | 2 +- test_regress/t/t_clk_inp_init.cpp | 2 +- test_regress/t/t_comb_input_0.cpp | 2 +- test_regress/t/t_comb_input_1.cpp | 2 +- test_regress/t/t_comb_input_2.cpp | 2 +- test_regress/t/t_dpi_var.cpp | 2 +- test_regress/t/t_gantt_two.cpp | 2 +- test_regress/t/t_public_clk.cpp | 2 +- test_regress/t/t_public_seq.cpp | 2 +- test_regress/t/t_scope_map.cpp | 2 +- test_regress/t/t_trace_cat.cpp | 2 +- test_regress/t/t_trace_cat_fst.cpp | 2 +- test_regress/t/t_trace_dumpvars_dyn.cpp | 2 +- test_regress/t/t_trace_public_func.cpp | 2 +- test_regress/t/t_trace_public_sig.cpp | 2 +- test_regress/t/t_trace_rollover.cpp | 2 +- test_regress/t/t_trace_two_cc.cpp | 2 +- test_regress/t/t_var_overwidth_bad.cpp | 2 +- test_regress/t/t_vpi_cb_iter.cpp | 2 +- test_regress/t/t_vpi_cbs_called.cpp | 2 +- test_regress/t/t_vpi_get.cpp | 2 +- test_regress/t/t_vpi_memory.cpp | 2 +- test_regress/t/t_vpi_module.cpp | 2 +- test_regress/t/t_vpi_param.cpp | 2 +- test_regress/t/t_vpi_time_cb.cpp | 2 +- test_regress/t/t_vpi_unimpl.cpp | 2 +- test_regress/t/t_vpi_var.cpp | 2 +- test_regress/t/t_vpi_zero_time_cb.cpp | 2 +- test_regress/t/t_wrapper_context.cpp | 2 +- test_regress/t/t_wrapper_del_context_bad.cpp | 2 +- test_regress/t/t_wrapper_legacy.cpp | 2 +- 40 files changed, 50 insertions(+), 48 deletions(-) diff --git a/docs/guide/connecting.rst b/docs/guide/connecting.rst index 638f5c33d..16f569007 100644 --- a/docs/guide/connecting.rst +++ b/docs/guide/connecting.rst @@ -406,7 +406,7 @@ accesses the above signal "readme" would be: printf("Value of v: %d\n", v.value.integer); // Prints "readme" } - int main(int argc, char** argv, char** env) { + int main(int argc, char** argv) { Verilated::commandArgs(argc, argv); const std::unique_ptr contextp{new VerilatedContext}; const std::unique_ptr top{new Vour{contextp.get()}}; diff --git a/docs/guide/example_cc.rst b/docs/guide/example_cc.rst index 192704559..3d8662aba 100644 --- a/docs/guide/example_cc.rst +++ b/docs/guide/example_cc.rst @@ -28,7 +28,7 @@ Now, let's create an example Verilog, and C++ wrapper file: cat >sim_main.cpp <<'EOF' #include "Vour.h" #include "verilated.h" - int main(int argc, char** argv, char** env) { + int main(int argc, char** argv) { VerilatedContext* contextp = new VerilatedContext; contextp->commandArgs(argc, argv); Vour* top = new Vour{contextp}; diff --git a/docs/guide/faq.rst b/docs/guide/faq.rst index 0b70ea289..46d52a3b5 100644 --- a/docs/guide/faq.rst +++ b/docs/guide/faq.rst @@ -144,7 +144,7 @@ B. Or, for finer-grained control, or C++ files with multiple Verilated #include "verilated_vcd_c.h" ... - int main(int argc, char** argv, char** env) { + int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; ... Verilated::traceEverOn(true); @@ -197,7 +197,7 @@ C. Alternatively you may use the C++ trace mechanism described in the #include "verilated_vcd_sc.h" ... - int main(int argc, char** argv, char** env) { + int main(int argc, char** argv) { ... Verilated::traceEverOn(true); VerilatedVcdSc* tfp = new VerilatedVcdSc; diff --git a/examples/make_hello_c/sim_main.cpp b/examples/make_hello_c/sim_main.cpp index 2e605d512..f2df7b52e 100644 --- a/examples/make_hello_c/sim_main.cpp +++ b/examples/make_hello_c/sim_main.cpp @@ -11,19 +11,20 @@ // Include model header, generated from Verilating "top.v" #include "Vtop.h" -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { // See a similar example walkthrough in the verilator manpage. // This is intended to be a minimal example. Before copying this to start a // real project, it is better to start with a more complete example, // e.g. examples/c_tracing. - // Prevent unused variable warnings - if (false && argc && argv && env) {} - // Construct a VerilatedContext to hold simulation time, etc. VerilatedContext* contextp = new VerilatedContext; + // Pass arguments so Verilated code can see them, e.g. $value$plusargs + // This needs to be called before you create any model + contextp->commandArgs(argc, argv); + // Construct the Verilated model, from Vtop.h generated from Verilating "top.v" Vtop* top = new Vtop{contextp}; diff --git a/examples/make_hello_sc/sc_main.cpp b/examples/make_hello_sc/sc_main.cpp index 587010712..91fe02220 100644 --- a/examples/make_hello_sc/sc_main.cpp +++ b/examples/make_hello_sc/sc_main.cpp @@ -22,12 +22,13 @@ int sc_main(int argc, char* argv[]) { // real project, it is better to start with a more complete example, // e.g. examples/c_tracing. - // Prevent unused variable warnings - if (false && argc && argv) {} - // Construct the Verilated model, from Vtop.h generated from Verilating "top.v" Vtop* top = new Vtop{"top"}; + // Pass arguments so Verilated code can see them, e.g. $value$plusargs + // This needs to be called before you create any model + Verilated::commandArgs(argc, argv); + // Initialize SC model sc_start(1, SC_NS); diff --git a/examples/make_protect_lib/sim_main.cpp b/examples/make_protect_lib/sim_main.cpp index fefcb0c5a..0c11180f5 100644 --- a/examples/make_protect_lib/sim_main.cpp +++ b/examples/make_protect_lib/sim_main.cpp @@ -16,8 +16,8 @@ #include #endif -int main(int argc, char** argv, char** env) { - if (false && argc && argv && env) {} +int main(int argc, char** argv) { + if (false && argc && argv) {} // Construct context to hold simulation time, etc VerilatedContext* contextp = new VerilatedContext; diff --git a/examples/make_tracing_c/sim_main.cpp b/examples/make_tracing_c/sim_main.cpp index 06d399901..a49225cdc 100644 --- a/examples/make_tracing_c/sim_main.cpp +++ b/examples/make_tracing_c/sim_main.cpp @@ -17,11 +17,11 @@ // Legacy function required only so linking works on Cygwin and MSVC++ double sc_time_stamp() { return 0; } -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { // This is a more complicated example, please also see the simpler examples/make_hello_c. // Prevent unused variable warnings - if (false && argc && argv && env) {} + if (false && argc && argv) {} // Create logs/ directory in case we have traces to put under it Verilated::mkdir("logs"); diff --git a/src/Verilator.cpp b/src/Verilator.cpp index febe42703..464e68e4e 100644 --- a/src/Verilator.cpp +++ b/src/Verilator.cpp @@ -721,7 +721,7 @@ static void execHierVerilation() { //###################################################################### -int main(int argc, char** argv, char** /*env*/) { +int main(int argc, char** argv) { // General initialization std::ios::sync_with_stdio(); diff --git a/src/VlcMain.cpp b/src/VlcMain.cpp index 5f1b01ec5..a2f93f043 100644 --- a/src/VlcMain.cpp +++ b/src/VlcMain.cpp @@ -113,7 +113,7 @@ void VlcOptions::showVersion(bool verbose) { //###################################################################### -int main(int argc, char** argv, char** /*env*/) { +int main(int argc, char** argv) { // General initialization std::ios::sync_with_stdio(); diff --git a/test_regress/driver.pl b/test_regress/driver.pl index 86bee331e..29e7b7c32 100755 --- a/test_regress/driver.pl +++ b/test_regress/driver.pl @@ -1788,7 +1788,7 @@ sub _make_main { print $fh " sc_set_time_resolution(1, $Self->{sc_time_resolution});\n"; print $fh " sc_time sim_time($self->{sim_time}, $Self->{sc_time_resolution});\n"; } else { - print $fh "int main(int argc, char** argv, char** env) {\n"; + print $fh "int main(int argc, char** argv) {\n"; print $fh " uint64_t sim_time = $self->{sim_time};\n"; } diff --git a/test_regress/t/t_clk_inp_init.cpp b/test_regress/t/t_clk_inp_init.cpp index b8a31e3f2..c80c819a3 100644 --- a/test_regress/t/t_clk_inp_init.cpp +++ b/test_regress/t/t_clk_inp_init.cpp @@ -51,7 +51,7 @@ void oneTest(int argc, char** argv, int seed) { topp->final(); } -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { #if VL_DEBUG // Verilated::debug(1); #endif diff --git a/test_regress/t/t_comb_input_0.cpp b/test_regress/t/t_comb_input_0.cpp index 03db9b00d..926562092 100644 --- a/test_regress/t/t_comb_input_0.cpp +++ b/test_regress/t/t_comb_input_0.cpp @@ -16,7 +16,7 @@ #include -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; contextp->commandArgs(argc, argv); contextp->debug(0); diff --git a/test_regress/t/t_comb_input_1.cpp b/test_regress/t/t_comb_input_1.cpp index ffd4c0e52..0277f3ca1 100644 --- a/test_regress/t/t_comb_input_1.cpp +++ b/test_regress/t/t_comb_input_1.cpp @@ -16,7 +16,7 @@ #include -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; contextp->commandArgs(argc, argv); contextp->debug(0); diff --git a/test_regress/t/t_comb_input_2.cpp b/test_regress/t/t_comb_input_2.cpp index 69138e068..527cfae3d 100644 --- a/test_regress/t/t_comb_input_2.cpp +++ b/test_regress/t/t_comb_input_2.cpp @@ -16,7 +16,7 @@ #include -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; contextp->commandArgs(argc, argv); contextp->debug(0); diff --git a/test_regress/t/t_dpi_var.cpp b/test_regress/t/t_dpi_var.cpp index 5f9ee79f1..d494db7f3 100644 --- a/test_regress/t/t_dpi_var.cpp +++ b/test_regress/t/t_dpi_var.cpp @@ -110,7 +110,7 @@ void mon_eval() { //====================================================================== -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; uint64_t sim_time = 1100; diff --git a/test_regress/t/t_gantt_two.cpp b/test_regress/t/t_gantt_two.cpp index 5754c91fe..04b412836 100644 --- a/test_regress/t/t_gantt_two.cpp +++ b/test_regress/t/t_gantt_two.cpp @@ -12,7 +12,7 @@ #include -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { srand48(5); const std::unique_ptr contextp{new VerilatedContext}; diff --git a/test_regress/t/t_public_clk.cpp b/test_regress/t/t_public_clk.cpp index 15ff2985b..ebed647f7 100644 --- a/test_regress/t/t_public_clk.cpp +++ b/test_regress/t/t_public_clk.cpp @@ -13,7 +13,7 @@ #include "verilated.h" std::unique_ptr topp; -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { vluint64_t sim_time = 1100; const std::unique_ptr contextp{new VerilatedContext}; contextp->commandArgs(argc, argv); diff --git a/test_regress/t/t_public_seq.cpp b/test_regress/t/t_public_seq.cpp index 26906bd88..f69b3ab8d 100644 --- a/test_regress/t/t_public_seq.cpp +++ b/test_regress/t/t_public_seq.cpp @@ -13,7 +13,7 @@ #include "verilated.h" std::unique_ptr topp; -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { vluint64_t sim_time = 1100; const std::unique_ptr contextp{new VerilatedContext}; contextp->commandArgs(argc, argv); diff --git a/test_regress/t/t_scope_map.cpp b/test_regress/t/t_scope_map.cpp index d9f554d8b..bfd276936 100644 --- a/test_regress/t/t_scope_map.cpp +++ b/test_regress/t/t_scope_map.cpp @@ -17,7 +17,7 @@ const unsigned long long dt_2 = 3; -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; Vt_scope_map* top = new Vt_scope_map{contextp.get(), "top"}; diff --git a/test_regress/t/t_trace_cat.cpp b/test_regress/t/t_trace_cat.cpp index 914f87a84..bc5cc83bc 100644 --- a/test_regress/t/t_trace_cat.cpp +++ b/test_regress/t/t_trace_cat.cpp @@ -22,7 +22,7 @@ const char* trace_name() { return name; } -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { std::unique_ptr top{new VM_PREFIX("top")}; Verilated::debug(0); diff --git a/test_regress/t/t_trace_cat_fst.cpp b/test_regress/t/t_trace_cat_fst.cpp index bb35df44b..d541834a1 100644 --- a/test_regress/t/t_trace_cat_fst.cpp +++ b/test_regress/t/t_trace_cat_fst.cpp @@ -22,7 +22,7 @@ const char* trace_name() { return name; } -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { std::unique_ptr top{new VM_PREFIX("top")}; Verilated::debug(0); diff --git a/test_regress/t/t_trace_dumpvars_dyn.cpp b/test_regress/t/t_trace_dumpvars_dyn.cpp index 02634e50a..57f8c50ca 100644 --- a/test_regress/t/t_trace_dumpvars_dyn.cpp +++ b/test_regress/t/t_trace_dumpvars_dyn.cpp @@ -19,7 +19,7 @@ double sc_time_stamp() { return (double)main_time; } const unsigned long long dt_2 = 3; -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { std::unique_ptr top{new VM_PREFIX("top")}; Verilated::debug(0); diff --git a/test_regress/t/t_trace_public_func.cpp b/test_regress/t/t_trace_public_func.cpp index bd31c9a6f..cd65cf622 100644 --- a/test_regress/t/t_trace_public_func.cpp +++ b/test_regress/t/t_trace_public_func.cpp @@ -27,7 +27,7 @@ double sc_time_stamp() { return (double)main_time; } const unsigned long long dt_2 = 3; -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { std::unique_ptr top{new VM_PREFIX("top")}; Verilated::debug(0); diff --git a/test_regress/t/t_trace_public_sig.cpp b/test_regress/t/t_trace_public_sig.cpp index 04d5be921..7295bd20c 100644 --- a/test_regress/t/t_trace_public_sig.cpp +++ b/test_regress/t/t_trace_public_sig.cpp @@ -25,7 +25,7 @@ double sc_time_stamp() { return (double)main_time; } const unsigned long long dt_2 = 3; -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { VM_PREFIX* top = new VM_PREFIX{"top"}; Verilated::debug(0); diff --git a/test_regress/t/t_trace_rollover.cpp b/test_regress/t/t_trace_rollover.cpp index f2331b124..b9f72042b 100644 --- a/test_regress/t/t_trace_rollover.cpp +++ b/test_regress/t/t_trace_rollover.cpp @@ -16,7 +16,7 @@ unsigned long long main_time = 0; double sc_time_stamp() { return (double)main_time; } -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { std::unique_ptr top{new VM_PREFIX("top")}; Verilated::debug(0); diff --git a/test_regress/t/t_trace_two_cc.cpp b/test_regress/t/t_trace_two_cc.cpp index 31c314f86..9b4378a40 100644 --- a/test_regress/t/t_trace_two_cc.cpp +++ b/test_regress/t/t_trace_two_cc.cpp @@ -26,7 +26,7 @@ VM_PREFIX* ap; Vt_trace_two_b* bp; -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; uint64_t sim_time = 1100; diff --git a/test_regress/t/t_var_overwidth_bad.cpp b/test_regress/t/t_var_overwidth_bad.cpp index 586314a73..e0f45a1b0 100644 --- a/test_regress/t/t_var_overwidth_bad.cpp +++ b/test_regress/t/t_var_overwidth_bad.cpp @@ -19,7 +19,7 @@ double main_time; double sc_time_stamp() { return main_time; } -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { Verilated::debug(0); VM_PREFIX* topp = new VM_PREFIX{""}; // Note null name - we're flattening it out diff --git a/test_regress/t/t_vpi_cb_iter.cpp b/test_regress/t/t_vpi_cb_iter.cpp index 544e1bc62..295b95e4d 100644 --- a/test_regress/t/t_vpi_cb_iter.cpp +++ b/test_regress/t/t_vpi_cb_iter.cpp @@ -143,7 +143,7 @@ static void register_filler_cb() { double sc_time_stamp() { return main_time; } -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; uint64_t sim_time = 100; diff --git a/test_regress/t/t_vpi_cbs_called.cpp b/test_regress/t/t_vpi_cbs_called.cpp index a2371716a..16dac6df9 100644 --- a/test_regress/t/t_vpi_cbs_called.cpp +++ b/test_regress/t/t_vpi_cbs_called.cpp @@ -245,7 +245,7 @@ static int register_test_callback() { return 0; } -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; uint64_t sim_time = 100; diff --git a/test_regress/t/t_vpi_get.cpp b/test_regress/t/t_vpi_get.cpp index 898664841..6d28d1d76 100644 --- a/test_regress/t/t_vpi_get.cpp +++ b/test_regress/t/t_vpi_get.cpp @@ -239,7 +239,7 @@ void vpi_compat_bootstrap(void) { void (*vlog_startup_routines[])() = {vpi_compat_bootstrap, 0}; #else -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; uint64_t sim_time = 1100; diff --git a/test_regress/t/t_vpi_memory.cpp b/test_regress/t/t_vpi_memory.cpp index 64122cc24..63562b2f2 100644 --- a/test_regress/t/t_vpi_memory.cpp +++ b/test_regress/t/t_vpi_memory.cpp @@ -250,7 +250,7 @@ void (*vlog_startup_routines[])() = {vpi_compat_bootstrap, 0}; #else -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; uint64_t sim_time = 1100; diff --git a/test_regress/t/t_vpi_module.cpp b/test_regress/t/t_vpi_module.cpp index 1c2de048c..14ba4236f 100644 --- a/test_regress/t/t_vpi_module.cpp +++ b/test_regress/t/t_vpi_module.cpp @@ -171,7 +171,7 @@ void (*vlog_startup_routines[])() = {vpi_compat_bootstrap, 0}; #else -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; uint64_t sim_time = 1100; diff --git a/test_regress/t/t_vpi_param.cpp b/test_regress/t/t_vpi_param.cpp index dcc4a7fb9..46b7cad4c 100644 --- a/test_regress/t/t_vpi_param.cpp +++ b/test_regress/t/t_vpi_param.cpp @@ -239,7 +239,7 @@ void (*vlog_startup_routines[])() = {vpi_compat_bootstrap, 0}; #else -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; uint64_t sim_time = 1100; diff --git a/test_regress/t/t_vpi_time_cb.cpp b/test_regress/t/t_vpi_time_cb.cpp index 0665e6a10..d41fddc30 100644 --- a/test_regress/t/t_vpi_time_cb.cpp +++ b/test_regress/t/t_vpi_time_cb.cpp @@ -24,7 +24,7 @@ //====================================================================== -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; uint64_t sim_time = 1100; diff --git a/test_regress/t/t_vpi_unimpl.cpp b/test_regress/t/t_vpi_unimpl.cpp index e91515a6e..f3797f9eb 100644 --- a/test_regress/t/t_vpi_unimpl.cpp +++ b/test_regress/t/t_vpi_unimpl.cpp @@ -183,7 +183,7 @@ extern "C" int mon_check() { //====================================================================== -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; uint64_t sim_time = 1100; diff --git a/test_regress/t/t_vpi_var.cpp b/test_regress/t/t_vpi_var.cpp index 1c5c76f50..a75095d5c 100644 --- a/test_regress/t/t_vpi_var.cpp +++ b/test_regress/t/t_vpi_var.cpp @@ -693,7 +693,7 @@ void (*vlog_startup_routines[])() = {vpi_compat_bootstrap, 0}; #else double sc_time_stamp() { return main_time; } -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; uint64_t sim_time = 1100; diff --git a/test_regress/t/t_vpi_zero_time_cb.cpp b/test_regress/t/t_vpi_zero_time_cb.cpp index cd35de936..b5c74feb5 100644 --- a/test_regress/t/t_vpi_zero_time_cb.cpp +++ b/test_regress/t/t_vpi_zero_time_cb.cpp @@ -105,7 +105,7 @@ void (*vlog_startup_routines[])() = {vpi_compat_bootstrap, 0}; #else -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { const std::unique_ptr contextp{new VerilatedContext}; uint64_t sim_time = 1100; diff --git a/test_regress/t/t_wrapper_context.cpp b/test_regress/t/t_wrapper_context.cpp index c712cd603..267932a21 100644 --- a/test_regress/t/t_wrapper_context.cpp +++ b/test_regress/t/t_wrapper_context.cpp @@ -88,7 +88,7 @@ void sim(VM_PREFIX* topp) { contextp->coveragep()->write(filename.c_str()); } -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { // Create contexts std::unique_ptr context0p{new VerilatedContext}; std::unique_ptr context1p{new VerilatedContext}; diff --git a/test_regress/t/t_wrapper_del_context_bad.cpp b/test_regress/t/t_wrapper_del_context_bad.cpp index 28f80eee4..b825a5a4b 100644 --- a/test_regress/t/t_wrapper_del_context_bad.cpp +++ b/test_regress/t/t_wrapper_del_context_bad.cpp @@ -9,7 +9,7 @@ #include VM_PREFIX_INCLUDE -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { // Create contexts VerilatedContext* contextp{new VerilatedContext}; diff --git a/test_regress/t/t_wrapper_legacy.cpp b/test_regress/t/t_wrapper_legacy.cpp index a2a5ac518..d14d72ce3 100644 --- a/test_regress/t/t_wrapper_legacy.cpp +++ b/test_regress/t/t_wrapper_legacy.cpp @@ -29,7 +29,7 @@ vluint64_t vl_time_stamp64() { return main_time; } double sc_time_stamp() { return main_time; } #endif -int main(int argc, char** argv, char** env) { +int main(int argc, char** argv) { // Test that the old non-context Verilated:: calls all work // (This test should never get updated to use context)