summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-19 15:00:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-19 15:00:35 +0000
commitde790435fa32ebb23fa02e4140591adc06e7cc5b (patch)
tree00d4fe04f58e17c13cdce62c021e576025d6a8aa
parent9c336391f235c0cecbf746bc5b34e88dbb8aefaa (diff)
ruby/ruby.h: void rb_scan_args_verify
* include/ruby/ruby.h (rb_scan_args_verify): void the never used result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--include/ruby/ruby.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index d2284e5..58e28d2 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -2316,10 +2316,10 @@ ERRORFUNC(("variable argument length doesn't match"), int rb_scan_args_length_mi
rb_scan_args_length_mismatch(fmt, varc)))
# if defined(__has_attribute) && __has_attribute(diagnose_if)
-# define rb_scan_args_verify(fmt, varc) 0
+# define rb_scan_args_verify(fmt, varc) (void)0
# elif defined(__GNUC__)
# define rb_scan_args_verify(fmt, varc) \
- __extension__ ({ \
+ (void)__extension__ ({ \
int verify; \
_Pragma("GCC diagnostic push"); \
_Pragma("GCC diagnostic ignored \"-Warray-bounds\""); \
@@ -2329,7 +2329,7 @@ ERRORFUNC(("variable argument length doesn't match"), int rb_scan_args_length_mi
})
# else
# define rb_scan_args_verify(fmt, varc) \
- rb_scan_args_verify_count(fmt, varc)
+ (void)rb_scan_args_verify_count(fmt, varc)
# endif
ALWAYS_INLINE(static int rb_scan_args_lead_p(const char *fmt));