From b0e3ee454d48748b4aadf1aaedd52670370d503b Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Fri, 23 Sep 2022 23:06:27 -0700 Subject: [PATCH] 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); #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