Fix warning

This commit is contained in:
Alexey Milovidov 2020-07-30 04:51:57 +03:00
parent f29c0af9aa
commit eb534ebee3

View File

@ -357,6 +357,12 @@ public:
return;
}
/// The warning about array bounds is irrelevant if the function not allocatesMemoryInArena.
#if !__clang__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
/// Will use UNROLL_COUNT number of lookup tables.
static constexpr size_t UNROLL_COUNT = 8;
@ -411,6 +417,10 @@ public:
func.add(place + place_offset, columns, i, nullptr);
}
#if !__clang__
#pragma GCC diagnostic pop
#endif
}
};