Fix missing unordered_map

Maybe fix for tons of -Wunused-value
This commit is contained in:
Jonathan 2021-10-05 23:00:13 -04:00
parent a2edc09018
commit ca0111ce5d
3 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#include <array>
#include <tuple>
#include <variant>
#include <unordered_map>
#include <common/cmdlib.hh>
#include <common/log.hh>

View File

@ -60,7 +60,7 @@ public:
else {
constexpr size_t copy_size = qmin(N, count);
size_t i = 0;
((i++ < copy_size ? (v[i - 1] = a, true) : false), ...);
[[maybe_unused]] auto _ = ((i++ < copy_size ? (v[i - 1] = a, true) : false), ...);
// Bug with MSVC:
// https://developercommunity.visualstudio.com/t/stdc20-fatal-error-c1004-unexpected-end-of-file-fo/1509806
constexpr bool fill_rest = count < N;

View File

@ -26,6 +26,7 @@
#include <optional>
#include <vector>
#include <unordered_map>
struct mapface_t
{