Internals: Prefer '(void)' to avoid unused var. No functional change.

This commit is contained in:
Wilson Snyder
2024-03-27 18:07:14 -04:00
parent 0ff77fc352
commit ea8f86dd30
8 changed files with 22 additions and 20 deletions
+2 -2
View File
@@ -886,7 +886,7 @@ void _vl_vsformat(std::string& output, const std::string& format, va_list ap) VL
case '^': { // Realtime
const int lbits = va_arg(ap, int);
const double d = va_arg(ap, double);
if (lbits) {} // UNUSED - always 64
(void)lbits; // UNUSED - always 64
if (fmt == '^') { // Realtime
if (!widthSet) width = Verilated::threadContextp()->impp()->timeFormatWidth();
const int timeunit = va_arg(ap, int);
@@ -3101,7 +3101,7 @@ void Verilated::stackCheck(QData needSize) VL_MT_UNSAFE {
haveSize / 1024, (needSize * 2) / 1024);
}
#else
if (false && needSize) {} // Unused argument
(void)needSize; // Unused argument
#endif
}