Project

General

Profile

Actions

Bug #15284

closed

Unintentional warnings with node.h

Added by hsbt (Hiroshi SHIBATA) over 5 years ago. Updated about 5 years ago.

Status:
Closed
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 1 (0 open1 closed)

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

Updated by nobu (Nobuyoshi Nakada) over 5 years ago

  • Related to Bug #15297: Appveyor - test-all failures & build warnings - bison 3.1 vs 3.2 ? added
Actions #2

Updated by nobu (Nobuyoshi Nakada) over 5 years ago

  • Status changed from Assigned to Closed

Applied in changeset trunk|r65667.


Fix for bison 3.2 [Bug #15284]

Updated by yui-knk (Kaneko Yuichiro) over 5 years ago

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

Actions #4

Updated by nobu (Nobuyoshi Nakada) over 5 years ago

  • Backport changed from 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN to 2.3: REQUIRED, 2.4: REQUIRED, 2.5: REQUIRED

Updated by nagachika (Tomoyuki Chikanaga) over 5 years ago

  • Backport changed from 2.3: REQUIRED, 2.4: REQUIRED, 2.5: REQUIRED to 2.3: REQUIRED, 2.4: REQUIRED, 2.5: DONE

ruby_2_5 r66285 merged revision(s) 65667.

Updated by usa (Usaku NAKAMURA) about 5 years ago

  • Backport changed from 2.3: REQUIRED, 2.4: REQUIRED, 2.5: DONE to 2.3: REQUIRED, 2.4: DONE, 2.5: DONE

ruby_2_4 r66970 merged revision(s) 65667.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0