ruby-changes:72292
From: Nobuyoshi <ko1@a...>
Date: Thu, 23 Jun 2022 22:53:48 +0900 (JST)
Subject: [ruby-changes:72292] 961543945f (master): Suppress notes for old gcc
https://git.ruby-lang.org/ruby.git/commit/?id=961543945f From 961543945ff9ba0a4744ec4038349318cae78c9e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 22 Jun 2022 20:20:48 +0900 Subject: Suppress notes for old gcc --- parse.y | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/parse.y b/parse.y index 4183804700..4bda597834 100644 --- a/parse.y +++ b/parse.y @@ -70,6 +70,16 @@ struct lex_context { https://github.com/ruby/ruby/blob/trunk/parse.y#L70 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} -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/