From: hsbt@... Date: 2018-11-06T09:54:41+00:00 Subject: [ruby-core:89722] [Ruby trunk Bug#15284] Unintentional warnings with node.h Issue #15284 has been reported by hsbt (Hiroshi SHIBATA). ---------------------------------------- Bug #15284: Unintentional warnings with node.h https://bugs.ruby-lang.org/issues/15284 * Author: hsbt (Hiroshi SHIBATA) * Status: Assigned * 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: