This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unused yyoverflowlab warning


| 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  <kraai@alumni.cmu.edu>

	* 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       laurent.mascherpa@epita.fr
 Magnus Fromreide        magfr@lysator.liu.se
 Marc Autret             autret_m@epita.fr
+Matt Kraai              kraai@alumni.cmu.edu
 Michael Hayes           m.hayes@elec.canterbury.ac.nz
 Mike Castle             dalgoda@ix.netcom.com
 Neil Booth              NeilB@earthling.net
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]