From: Marcelina Koƛcielnicka Date: Sat, 11 Dec 2021 16:17:43 +0000 (+0100) Subject: Fix unused param warning with ENABLE_NDEBUG. X-Git-Tag: yosys-0.13~35 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26f0f6bb0b7fa25661f7993a5c218bbe8bc5a4ec;p=yosys.git Fix unused param warning with ENABLE_NDEBUG. --- diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 073110f16..a562d253c 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -970,7 +970,7 @@ public: #ifndef NDEBUG void check(Module *mod = nullptr) const; #else - void check(Module *mod = nullptr) const { } + void check(Module *mod = nullptr) const { (void)mod; } #endif };