Skip to content
Permalink
Browse files

Replace custom UNUSED macro with [[maybe_unused]]

  • Loading branch information...
leoetlino committed Dec 25, 2017
1 parent c40ae45 commit cb168f22d66edf0216fadc5bdc602394d5e9b9a7
Showing with 1 addition and 10 deletions.
  1. +0 −9 Source/Core/Common/Compiler.h
  2. +1 −1 Source/Core/Common/Crypto/ec.cpp
@@ -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
@@ -173,7 +173,7 @@ struct Point
};

// 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};

0 comments on commit cb168f2

Please sign in to comment.
You can’t perform that action at this time.