Project

General

Profile

Actions

Bug #15284

closed

Unintentional warnings with node.h

Added by hsbt (Hiroshi SHIBATA) almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:89722]

Description

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

Related issues

Related to Ruby master - Bug #15297: Appveyor - test-all failures & build warnings - bison 3.1 vs 3.2 ?ClosedActions
Actions

Also available in: Atom PDF