diff options
Diffstat (limited to 'src/lib/netlist/nl_base.cpp')
-rw-r--r-- | src/lib/netlist/nl_base.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/netlist/nl_base.cpp b/src/lib/netlist/nl_base.cpp index b31b7b9ad16..c23776f8219 100644 --- a/src/lib/netlist/nl_base.cpp +++ b/src/lib/netlist/nl_base.cpp @@ -473,10 +473,11 @@ void netlist_t::print_stats() const log().verbose("Total loop {1:15}", m_stat_mainloop()); log().verbose("Total time {1:15}", total_time); - /* Only one serialization should be counted in total time */ - /* But two are contained in m_stat_mainloop */ - if (!!USE_QUEUE_STATS) + // FIXME: clang complains about unreachable code without + if (USE_QUEUE_STATS || (!USE_QUEUE_STATS && m_stats)) { + /* Only one serialization should be counted in total time */ + /* But two are contained in m_stat_mainloop */ nperftime_t<true> overhead; nperftime_t<true> test; { |