1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress -Wtype-limits warnings on mjit_c.rb

This commit is contained in:
Takashi Kokubun 2022-09-23 23:06:27 -07:00
parent 82ac4a2399
commit b0e3ee454d
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -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 SIZEOF(type) RB_SIZE2NUM(sizeof(type))
#define SIGNED_TYPE_P(type) RBOOL((type)(-1) < (type)(0)) #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" #include "mjit_c.rbinc"
RBIMPL_WARNING_POP();
#include "mjit_compiler.rbinc" #include "mjit_compiler.rbinc"
#endif // USE_MJIT #endif // USE_MJIT