bison-patches
[Top][All Lists]
Advanced

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

lalr1.cc patch for unused variable warning


From: Paul Eggert
Subject: lalr1.cc patch for unused variable warning
Date: Sat, 25 Dec 2004 21:43:52 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

I installed this to avoid a problem with GCC 3.4.3 when unused variable
warnings are enabled:

2004-12-25  Paul Eggert  <address@hidden>

        * data/lalr1.cc (yydestruct_): Pacify unused variable warning
        for yymsg, too.

--- lalr1.cc    22 Dec 2004 10:06:14 -0000      1.79
+++ lalr1.cc    26 Dec 2004 05:42:27 -0000      1.80
@@ -491,6 +491,7 @@ yy::]b4_parser_class_name[::yydestruct_ 
                          int yytype, semantic_type* yyvaluep, location_type* 
yylocationp)
 {
   /* Pacify ``unused variable'' warnings.  */
+  (void) yymsg;
   (void) yyvaluep;
   (void) yylocationp;
 




reply via email to

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