mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress notes for old gcc
This commit is contained in:
parent
2f7c0f656e
commit
961543945f
1 changed files with 10 additions and 0 deletions
10
parse.y
10
parse.y
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue