Date: Wed, 24 Jul 1996 06:02:51 -0400 (EDT) From: tIM...HOEk@X3000 (Tim@Vanderhoek) To: FreeBSD-gnats-submit@freebsd.org Subject: bin/1427: yacc-generated parser generates warnings with -Wall Message-ID: <199607241002.GAA01061@X3000> Resent-Message-ID: <199607250610.XAA19812@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 1427
>Category: bin
>Synopsis: yacc-generated parser generates warnings with -Wall
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 24 23:10:02 PDT 1996
>Last-Modified:
>Originator: Tim Vanderhoek
>Organization:
Organization is evil.
>Release: FreeBSD 2.2-960501-SNAP i386
>Environment:
I don't believe there have been any changes to the yacc code
since June 20, 1996, the date of the diff mentioned in bin/1337.
>Description:
This is a follow-up to bin/1337 since it seems I didn't quite
catch all of the warnings last time...
>How-To-Repeat:
Compile a yacc-generated parser with #define YYDEBUG.
>Fix:
*** /devel/yacc/skeleton.c Sat Jul 6 14:23:57 1996
--- /devel/yacc/oldskel.c Thu Jun 20 19:07:52 1996
***************
*** 126,134 ****
" register int yym, yyn, yystate;",
"#if YYDEBUG",
" register char *yys;",
! " extern char *getenv(const char * name);",
"",
! " if ((yys = getenv(\"YYDEBUG\")))",
" {",
" yyn = *yys;",
" if (yyn >= '0' && yyn <= '9')",
--- 126,134 ----
" register int yym, yyn, yystate;",
"#if YYDEBUG",
" register char *yys;",
! " extern char *getenv();",
"",
! " if (yys = getenv(\"YYDEBUG\"))",
" {",
" yyn = *yys;",
" if (yyn >= '0' && yyn <= '9')",
***************
*** 145,151 ****
" *yyssp = yystate = 0;",
"",
"yyloop:",
! " if ((yyn = yydefred[yystate])) goto yyreduce;",
" if (yychar < 0)",
" {",
" if ((yychar = yylex()) < 0) yychar = 0;",
--- 145,151 ----
" *yyssp = yystate = 0;",
"",
"yyloop:",
! " if (yyn = yydefred[yystate]) goto yyreduce;",
" if (yychar < 0)",
" {",
" if ((yychar = yylex()) < 0) yychar = 0;",
>Audit-Trail:
>Unformatted:
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607241002.GAA01061>
