diff options
| author | 2019-04-22 22:17:58 +0200 | |
|---|---|---|
| committer | 2019-04-22 22:25:49 +0200 | |
| commit | 2bff9fa60f2a129da7a4e8cc65012b616e0cb45b (patch) | |
| tree | 202f22c2294b3f5ecbae0c47a3696d2cdeb7261e /src/lib | |
| parent | d3e86e1f929fdbbcdba7f988f564b39b5f8bfabb (diff) | |
Fix clang build. (nw)
Who on earth invented "-Wswitch-bool"?
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/netlist/nl_base.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/netlist/nl_base.h b/src/lib/netlist/nl_base.h index d5e378f8d73..346f0b58479 100644 --- a/src/lib/netlist/nl_base.h +++ b/src/lib/netlist/nl_base.h @@ -1506,11 +1506,19 @@ namespace netlist void qpush(detail::queue_t::entry_t && e) noexcept { + #if 0 + // clang treats -Wswitch-bool as error switch (m_stats) { case false: m_queue.push_nostats(std::move(e)); break; case true: m_queue.push(std::move(e)); break; } + #else + if (!m_stats) + m_queue.push_nostats(std::move(e)); + else + m_queue.push(std::move(e)); + #endif } template <class R> |
