bison-patches
[Top][All Lists]
Advanced

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

[PATCH] tests: address g++-4.8 warnings.


From: Akim Demaille
Subject: [PATCH] tests: address g++-4.8 warnings.
Date: Fri, 6 Jul 2012 11:14:00 +0200

list.yy: In function 'yy::parser::symbol_type yylex()':
list.yy:107:29: error: typedef 'token' locally defined but not used
  [-Werror=unused-local-typedefs]
   typedef yy::parser::token token;
                             ^

* tests/c++.at (AT_CHECK_VARIANTS): here.
---
 tests/c++.at | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/c++.at b/tests/c++.at
index 9f70f15..155f2de 100644
--- a/tests/c++.at
+++ b/tests/c++.at
@@ -127,7 +127,9 @@ yy::parser::token_type yylex(yy::parser::semantic_type* 
yylval,
                              yy::parser::location_type* yylloc)
 #endif
 {
+#ifndef USE_LEX_SYMBOL
   typedef yy::parser::token token;
+#endif
   typedef yy::parser::location_type location_type;
   static int stage = -1;
   ++stage;
-- 
1.7.11.1




reply via email to

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