summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-23 17:27:24 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-23 17:36:26 +0900
commitfe3ff5afb07e171fd950623c69abfbabbb2762a3 (patch)
treee7f285cf9cf0f84375e20c5d572e171b8af021e4 /include
parentdc95b57a68da6999ce6a1542b3ad81c51429cc99 (diff)
Suppress paranoid warnings for external/3rd-party libraries
[Feature #15665]
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ruby.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 0c6d7e3e63..86e01f64bf 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -2198,6 +2198,7 @@ rb_array_ptr_use_start(VALUE a, int allow_transient)
}
}
#endif
+ (void)allow_transient;
return rb_ary_ptr_use_start(a);
}
@@ -2208,6 +2209,7 @@ rb_array_ptr_use_end(VALUE a, int allow_transient)
{
void rb_ary_ptr_use_end(VALUE a);
rb_ary_ptr_use_end(a);
+ (void)allow_transient;
}
#if defined(EXTLIB) && defined(USE_DLN_A_OUT)