diff options
author | Patrik Nyblom <[email protected]> | 2011-11-10 18:13:57 +0100 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2011-11-16 17:07:37 +0100 |
commit | 95d12d7a893fd940253b62906e12e027a18e126a (patch) | |
tree | 9ae35b304aa2bf509dda19369560f8f0f66b3015 /erts/emulator/beam/sys.h | |
parent | b764d3fe3446a5744fc0441ba4ecf5ac169612e7 (diff) | |
download | otp-95d12d7a893fd940253b62906e12e027a18e126a.tar.gz otp-95d12d7a893fd940253b62906e12e027a18e126a.tar.bz2 otp-95d12d7a893fd940253b62906e12e027a18e126a.zip |
Remove GCC 4.6 set-but-not-used warning from erl_bif_binary
Diffstat (limited to 'erts/emulator/beam/sys.h')
-rw-r--r-- | erts/emulator/beam/sys.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h index f9cbcc5892..94c36c8c59 100644 --- a/erts/emulator/beam/sys.h +++ b/erts/emulator/beam/sys.h @@ -103,6 +103,15 @@ typedef ERTS_SYS_FD_TYPE ErtsSysFdType; # define ERTS_LIKELY(BOOL) (BOOL) # define ERTS_UNLIKELY(BOOL) (BOOL) #endif +#ifdef __GNUC__ +# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5) +# define ERTS_DECLARE_DUMMY(X) X __attribute__ ((unused)) +# else +# define ERTS_DECLARE_DUMMY(X) X +# endif +#else +# define ERTS_DECLARE_DUMMY(X) X +#endif #if defined(DEBUG) || defined(ERTS_ENABLE_LOCK_CHECK) # undef ERTS_CAN_INLINE |