From: spiketeika@... Date: 2018-11-11T13:05:10+00:00 Subject: [ruby-core:89770] [Ruby trunk Bug#15284] Unintentional warnings with node.h Issue #15284 has been updated by yui-knk (Kaneko Yuichiro). JFYI: It seems this commit on bison http://git.savannah.gnu.org/cgit/bison.git/commit/?id=e7b709ab0b00244f87f53e60bc2d0ad6b32f0c23 changed yyoutput to yyo. And this change on bison has been introduced to version 3.2. Ref: http://lists.gnu.org/archive/html/bison-patches/2018-10/msg00083.html ---------------------------------------- Bug #15284: Unintentional warnings with node.h https://bugs.ruby-lang.org/issues/15284#change-74832 * Author: hsbt (Hiroshi SHIBATA) * Status: Closed * Priority: Normal * Assignee: nobu (Nobuyoshi Nakada) * Target version: * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- Recently, I got the following warnings with build time. ``` parse.c:4720:14: warning: incompatible pointer types passing 'FILE *' (aka 'struct __sFILE *') to parameter of type 'struct parser_params *' [-Wincompatible-pointer-types] YYFPRINTF (yyo, "%s %s (", ^~~ ../node.h:437:57: note: passing argument to parameter 'parser' here PRINTF_ARGS(void rb_parser_printf(struct parser_params *parser, const char *fmt, ...), 2, 3); ^ parse.c:4724:14: warning: incompatible pointer types passing 'FILE *' (aka 'struct __sFILE *') to parameter of type 'struct parser_params *' [-Wincompatible-pointer-types] YYFPRINTF (yyo, ": "); ^~~ ../node.h:437:57: note: passing argument to parameter 'parser' here PRINTF_ARGS(void rb_parser_printf(struct parser_params *parser, const char *fmt, ...), 2, 3); ^ parse.c:4726:14: warning: incompatible pointer types passing 'FILE *' (aka 'struct __sFILE *') to parameter of type 'struct parser_params *' [-Wincompatible-pointer-types] YYFPRINTF (yyo, ")"); ^~~ ../node.h:437:57: note: passing argument to parameter 'parser' here PRINTF_ARGS(void rb_parser_printf(struct parser_params *parser, const char *fmt, ...), 2, 3); ``` Maybe, It caused by bison version. ``` > bison --version bison (GNU Bison) 3.2 ``` -- https://bugs.ruby-lang.org/ Unsubscribe: