ignore diagnostic -Wreserved-identifier in file base/common/unit.h

This commit is contained in:
Sergei Semin 2021-08-23 22:03:24 +03:00
parent 39929e52bd
commit ecff16de48

View File

@ -1,6 +1,10 @@
#pragma once
#include <cstddef>
#if defined(__clang__) && __clang_major__ >= 13
#pragma clang diagnostic ignored "-Wreserved-identifier"
#endif
constexpr size_t KiB = 1024;
constexpr size_t MiB = 1024 * KiB;
constexpr size_t GiB = 1024 * MiB;