bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unused yyoverflowlab warning


From: Matt Kraai
Subject: unused yyoverflowlab warning
Date: Mon, 3 Jun 2002 11:06:48 -0700
User-agent: Mutt/1.3.28i

Howdy,

When compiling GCC, I see the following warning:

 /usr/share/bison/bison.simple: In function `yyparse':
 /usr/share/bison/bison.simple:923: warning: label `yyoverflowlab' defined but 
not used

Patch appended.

Matt

Index: data/bison.simple
===================================================================
RCS file: /cvsroot/bison/bison/data/bison.simple,v
retrieving revision 1.29
diff -u -r1.29 bison.simple
--- data/bison.simple   28 May 2002 09:53:35 -0000      1.29
+++ data/bison.simple   3 Jun 2002 18:01:50 -0000
@@ -1213,6 +1213,7 @@
   yyresult = 1;
   goto yyreturn;
 
+#ifndef yyoverflow
 /*---------------------------------------------.
 | yyoverflowab -- parser overflow comes here.  |
 `---------------------------------------------*/
@@ -1220,6 +1221,7 @@
   yyerror ("parser stack overflow");
   yyresult = 2;
   /* Fall through.  */
+#endif
 
 yyreturn:
 #ifndef yyoverflow

Attachment: pgpzYMBXse_9x.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]