summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorcharliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-01 14:45:27 +0000
committercharliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-01 14:45:27 +0000
commitd60c6c8642e0e6193e5d513135b5dfaaf8a58cfd (patch)
tree79acaf1a18b6e408b3371ee27ad5ce4d9a6f1a5b /vm_core.h
parentec2db8decf97b79aef557c4b81eef3a0479f4ae3 (diff)
* vm_core.h: use __attribute__((unused)) in UNINTIALIZED_VAR on clang
4.0+ instead of just on 4.2. Clang has supported the unused attribute since before version 4, so this should be safe. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 4e46479940..8ebd390532 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -109,7 +109,7 @@
#define UNLIKELY(x) (x)
#endif /* __GNUC__ >= 3 */
-#if (defined(__clang__) && (__clang_major__ == 4 && __clang_minor__ == 2))
+#if (defined(__clang__) && __clang_major__ >= 4)
#define UNINITIALIZED_VAR(x) x __attribute__((unused))
#elif defined(__GNUC__) && __GNUC__ >= 3
#define UNINITIALIZED_VAR(x) x = x