diff --git a/Source/Core/Common/Compiler.h b/Source/Core/Common/Compiler.h index 0cd3836330..2b709cfe6f 100644 --- a/Source/Core/Common/Compiler.h +++ b/Source/Core/Common/Compiler.h @@ -4,15 +4,6 @@ #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 #define DOLPHIN_FORCE_INLINE __forceinline #else diff --git a/Source/Core/Common/Crypto/ec.cpp b/Source/Core/Common/Crypto/ec.cpp index 098d3e30c6..86ad2cccca 100644 --- a/Source/Core/Common/Crypto/ec.cpp +++ b/Source/Core/Common/Crypto/ec.cpp @@ -173,7 +173,7 @@ private: }; // 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, 0x3b, 0x33, 0x3b, 0x20, 0xe9, 0xce, 0x42, 0x81, 0xfe, 0x11, 0x5f, 0x7d, 0x8f, 0x90, 0xad};