summaryrefslogtreecommitdiff
path: root/mjit_compiler.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-09-23 23:06:27 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2022-09-23 23:07:30 -0700
commitb0e3ee454d48748b4aadf1aaedd52670370d503b (patch)
treebfe1e9fbc0112b9a1dbeed9bd4cb45545a51d609 /mjit_compiler.c
parent82ac4a2399516a3ffda750b815c244aad6d38277 (diff)
Suppress -Wtype-limits warnings on mjit_c.rb
Diffstat (limited to 'mjit_compiler.c')
-rw-r--r--mjit_compiler.c4
1 files changed, 4 insertions, 0 deletions
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