From fe3ff5afb07e171fd950623c69abfbabbb2762a3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 23 May 2019 17:27:24 +0900 Subject: Suppress paranoid warnings for external/3rd-party libraries [Feature #15665] --- include/ruby/ruby.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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) -- cgit v1.2.3