diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-21 14:32:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-21 14:32:17 +0000 |
commit | 7f7621e734dc697ab8e1f018c0013f27d77e6cbb (patch) | |
tree | d5efdf8f1c700001338413fec4bd6f8ed7bab1ae /include | |
parent | ccde88c1f173732f64e026c733bc3e9dffc50344 (diff) | |
download | ruby-7f7621e734dc697ab8e1f018c0013f27d77e6cbb.tar.gz |
revert r39861
* include/ruby/ruby.h: revert r39861 because RB_UNUSED_VAR() is used
for array variables in extension libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/ruby.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 947927ba7c..14b67ea067 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -529,10 +529,8 @@ static inline volatile VALUE *rb_gc_guarded_ptr(volatile VALUE *ptr) {return ptr #endif #define RB_GC_GUARD(v) (*RB_GC_GUARD_PTR(&(v))) -#if (defined(__clang__) && (__clang_major__ == 4 && __clang_minor__ == 2)) +#ifdef __GNUC__ #define RB_UNUSED_VAR(x) x __attribute__ ((unused)) -#elif defined(__GNUC__) && __GNUC__ >= 3 -#define RB_UNUSED_VAR(x) x = x #else #define RB_UNUSED_VAR(x) x #endif |