aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/sys.h
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2011-11-10 18:13:57 +0100
committerPatrik Nyblom <[email protected]>2011-11-16 17:07:37 +0100
commit95d12d7a893fd940253b62906e12e027a18e126a (patch)
tree9ae35b304aa2bf509dda19369560f8f0f66b3015 /erts/emulator/beam/sys.h
parentb764d3fe3446a5744fc0441ba4ecf5ac169612e7 (diff)
downloadotp-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.h9
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