diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-21 04:50:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-21 04:50:52 +0000 |
commit | 69d5f4ab53577fb4fb1a866ba74e5dbfe909e48d (patch) | |
tree | 46b8a03692c81d2e8272c19af034853229353f4d /vm_core.h | |
parent | 91194dfd38ac716ec5f4f17a1add3099014eb112 (diff) | |
download | ruby-69d5f4ab53577fb4fb1a866ba74e5dbfe909e48d.tar.gz |
vm_core.h: suppress warnings
* vm_core.h (UNINITIALIZED_VAR): suppress warnings by clang 4.2.
[ruby-core:51742] [Bug #7756]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -115,7 +115,9 @@ #define UNLIKELY(x) (x) #endif /* __GNUC__ >= 3 */ -#if __GNUC__ >= 3 +#if (defined(__clang__) && (__clang_major__ == 4 && __clang_minor__ == 2)) +#define UNINITIALIZED_VAR(x) x __attribute__((unused)) +#elif defined(__GNUC__) && __GNUC__ >= 3 #define UNINITIALIZED_VAR(x) x = x #else #define UNINITIALIZED_VAR(x) x |