Replace custom UNUSED macro with [[maybe_unused]]
This commit is contained in:
parent
c40ae4508d
commit
cb168f22d6
|
@ -4,15 +4,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
// TODO: Replace this with [[maybe_unused]] directly when GCC 7 and clang 3.9
|
|
||||||
// are hard requirements.
|
|
||||||
#if defined(__GNUC__) || __clang__
|
|
||||||
// Disable "unused function" warnings for the ones manually marked as such.
|
|
||||||
#define DOLPHIN_UNUSED __attribute__((unused))
|
|
||||||
#else
|
|
||||||
#define DOLPHIN_UNUSED [[maybe_unused]]
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define DOLPHIN_FORCE_INLINE __forceinline
|
#define DOLPHIN_FORCE_INLINE __forceinline
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -173,7 +173,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
// y**2 + x*y = x**3 + x + b
|
// y**2 + x*y = x**3 + x + b
|
||||||
DOLPHIN_UNUSED static const u8 ec_b[30] = {
|
[[maybe_unused]] static const u8 ec_b[30] = {
|
||||||
0x00, 0x66, 0x64, 0x7e, 0xde, 0x6c, 0x33, 0x2c, 0x7f, 0x8c, 0x09, 0x23, 0xbb, 0x58, 0x21,
|
0x00, 0x66, 0x64, 0x7e, 0xde, 0x6c, 0x33, 0x2c, 0x7f, 0x8c, 0x09, 0x23, 0xbb, 0x58, 0x21,
|
||||||
0x3b, 0x33, 0x3b, 0x20, 0xe9, 0xce, 0x42, 0x81, 0xfe, 0x11, 0x5f, 0x7d, 0x8f, 0x90, 0xad};
|
0x3b, 0x33, 0x3b, 0x20, 0xe9, 0xce, 0x42, 0x81, 0xfe, 0x11, 0x5f, 0x7d, 0x8f, 0x90, 0xad};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue