common: Enable warnings as errors

Cleans up common so that we can enable warnings as errors.
This commit is contained in:
Lioncash 2020-10-30 15:02:02 -04:00
parent 14a97d082e
commit 4a4b685a04
10 changed files with 57 additions and 37 deletions

View file

@ -34,7 +34,7 @@ private:
/// value used to reduce the native clocks accuracy as some apss rely on
/// undefined behavior where the level of accuracy in the clock shouldn't
/// be higher.
static constexpr u64 inaccuracy_mask = ~(0x400 - 1);
static constexpr u64 inaccuracy_mask = ~(UINT64_C(0x400) - 1);
SpinLock rtsc_serialize{};
u64 last_measure{};