[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unused yyoverflowlab warning
From: |
Akim Demaille |
Subject: |
Re: unused yyoverflowlab warning |
Date: |
18 Jun 2002 12:00:43 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) |
| 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.
Thanks, I'm applying it. Please, next time, send a ChangeLog too.
Index: ChangeLog
from Matt Kraai <address@hidden>
* data/bison.simple (yyoverflowlab): #ifndef yyoverflow, so that
there are no `label `yyoverflowlab' defined but not used' warnings
when yyoverflow is defined.
Index: THANKS
===================================================================
RCS file: /cvsroot/bison/bison/THANKS,v
retrieving revision 1.39
diff -u -u -r1.39 THANKS
--- THANKS 18 Jun 2002 09:12:58 -0000 1.39
+++ THANKS 18 Jun 2002 09:58:38 -0000
@@ -28,6 +28,7 @@
Laurent Mascherpa address@hidden
Magnus Fromreide address@hidden
Marc Autret address@hidden
+Matt Kraai address@hidden
Michael Hayes address@hidden
Mike Castle address@hidden
Neil Booth address@hidden
Index: data/bison.simple
===================================================================
RCS file: /cvsroot/bison/bison/data/bison.simple,v
retrieving revision 1.35
diff -u -u -r1.35 bison.simple
--- data/bison.simple 18 Jun 2002 09:55:35 -0000 1.35
+++ data/bison.simple 18 Jun 2002 09:58:38 -0000
@@ -1251,6 +1251,7 @@
yyresult = 1;
goto yyreturn;
+#ifndef yyoverflow
/*---------------------------------------------.
| yyoverflowab -- parser overflow comes here. |
`---------------------------------------------*/
@@ -1258,6 +1259,7 @@
yyerror ("parser stack overflow");
yyresult = 2;
/* Fall through. */
+#endif
yyreturn:
#ifndef yyoverflow