diff options
author | whitequark <whitequark@whitequark.org> | 2020-06-17 19:30:53 +0000 |
---|---|---|
committer | whitequark <whitequark@whitequark.org> | 2020-06-19 15:48:58 +0000 |
commit | 2ffdb74fb1b12e9f3730d0f152b795838934547d (patch) | |
tree | 5b8c8b443fcee553e620a236235cd151a84ed883 /backends/ilang | |
parent | d5d0cc88d272b85c3be3677993596dcfa82d579f (diff) | |
download | yosys-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/ilang')
-rw-r--r-- | backends/ilang/ilang_backend.cc | 2 |
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; |