[前][次][番号順一覧][スレッド一覧]

ruby-changes:73713

From: Takashi <ko1@a...>
Date: Sat, 24 Sep 2022 15:08:11 +0900 (JST)
Subject: [ruby-changes:73713] b0e3ee454d (master): Suppress -Wtype-limits warnings on mjit_c.rb

https://git.ruby-lang.org/ruby.git/commit/?id=b0e3ee454d

From b0e3ee454d48748b4aadf1aaedd52670370d503b Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Fri, 23 Sep 2022 23:06:27 -0700
Subject: Suppress -Wtype-limits warnings on mjit_c.rb

---
 mjit_compiler.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mjit_compiler.c b/mjit_compiler.c
index 5ed3aa5a68..3191c10d5f 100644
--- a/mjit_compiler.c
+++ b/mjit_compiler.c
@@ -171,7 +171,11 @@ extern bool rb_splat_or_kwargs_p(const struct rb_callinfo *restrict ci); https://github.com/ruby/ruby/blob/trunk/mjit_compiler.c#L171
 #define SIZEOF(type) RB_SIZE2NUM(sizeof(type))
 #define SIGNED_TYPE_P(type) RBOOL((type)(-1) < (type)(0))
 
+RBIMPL_WARNING_PUSH();
+RBIMPL_WARNING_IGNORED(-Wtype-limits); // for SIGNED_TYPE_P
 #include "mjit_c.rbinc"
+RBIMPL_WARNING_POP();
+
 #include "mjit_compiler.rbinc"
 
 #endif // USE_MJIT
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]