From 2ffdb74fb1b12e9f3730d0f152b795838934547d Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 17 Jun 2020 19:30:53 +0000 Subject: 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. --- backends/ilang/ilang_backend.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'backends') 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; -- cgit v1.2.3