Replace custom UNUSED macro with [[maybe_unused]]

This commit is contained in:
Léo Lam
2017-12-25 22:56:36 +01:00
parent c40ae4508d
commit cb168f22d6
2 changed files with 1 additions and 10 deletions

View File

@ -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