aboutsummaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-06-17 19:30:53 +0000
committerwhitequark <whitequark@whitequark.org>2020-06-19 15:48:58 +0000
commit2ffdb74fb1b12e9f3730d0f152b795838934547d (patch)
tree5b8c8b443fcee553e620a236235cd151a84ed883 /backends
parentd5d0cc88d272b85c3be3677993596dcfa82d579f (diff)
downloadyosys-2ffdb74fb1b12e9f3730d0f152b795838934547d.tar.gz
yosys-2ffdb74fb1b12e9f3730d0f152b795838934547d.tar.bz2
yosys-2ffdb74fb1b12e9f3730d0f152b795838934547d.zip
Use (and ignore) the expression provided to log_assert in NDEBUG builds.
This avoids warnings in NDEBUG builds emitted when a variable is only used in log_assert, but is always defined.
Diffstat (limited to 'backends')
-rw-r--r--backends/ilang/ilang_backend.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/backends/ilang/ilang_backend.cc b/backends/ilang/ilang_backend.cc
index cf0d3feca..aa5a175ca 100644
--- a/backends/ilang/ilang_backend.cc
+++ b/backends/ilang/ilang_backend.cc
@@ -362,9 +362,7 @@ void ILANG_BACKEND::dump_module(std::ostream &f, std::string indent, RTLIL::Modu
void ILANG_BACKEND::dump_design(std::ostream &f, RTLIL::Design *design, bool only_selected, bool flag_m, bool flag_n)
{
-#ifndef NDEBUG
int init_autoidx = autoidx;
-#endif
if (!flag_m) {
int count_selected_mods = 0;