diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-06-22 20:20:48 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-06-23 22:52:45 +0900 |
commit | 961543945ff9ba0a4744ec4038349318cae78c9e (patch) | |
tree | 38b17cddda352e653e2db0421a7e5f1ba20f2560 /parse.y | |
parent | 2f7c0f656ea42f9ad2ca3c1fbfabcff98ce59ee3 (diff) |
Suppress notes for old gcc
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -70,6 +70,16 @@ struct lex_context { BITFIELD(enum shareability, shareable_constant_value, 2); }; +#ifdef __GNUC__ +// Suppress "parameter passing for argument of type 'struct +// lex_context' changed" notes. `struct lex_context` is file scope, +// and has no ABI compatibility issue. +RBIMPL_WARNING_PUSH() +RBIMPL_WARNING_IGNORED(-Wpsabi) +RBIMPL_WARNING_POP() +// Not sure why effective even after popped. +#endif + #include "parse.h" #define NO_LEX_CTXT (struct lex_context){0} |