diff options
Diffstat (limited to 'include/ruby/ruby.h')
-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 |