Internals: Use more standard syntax for avoiding unused variable warnings (#4826)

This commit is contained in:
Tim Hutt
2024-01-13 15:34:59 -05:00
committed by GitHub
parent c9d7486d16
commit 5073f208af
6 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -548,7 +548,7 @@ class EmitCModel final : public EmitCFunc {
+ +"::trace()' shall not be called after '" + v3Global.opt.traceClassBase()
+ "C::open()'.\");\n");
puts(/**/ "}\n");
puts(/**/ "if (false && levels && options) {} // Prevent unused\n");
puts(/**/ "(void)levels; (void)options; // Prevent unused variable warning\n");
puts(/**/ "tfp->spTrace()->addModel(this);\n");
puts(/**/ "tfp->spTrace()->addInitCb(&" + protect("trace_init") + ", &(vlSymsp->TOP));\n");
puts(/**/ topModNameProtected + "__" + protect("trace_register")