bison-patches
[Top][All Lists]
Advanced

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

[PATCH 1/3] c++: silence warnings


From: Theophile Ranquet
Subject: [PATCH 1/3] c++: silence warnings
Date: Tue, 15 Jan 2013 15:44:09 +0100

* data/c++.m4 (basic_symbol<Base>::operator=): Unused parameter.
* tests/c++.at (C++ GLR parser identifier shadowing): Here too.
-
---
 data/c++.m4  | 2 +-
 tests/c++.at | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/data/c++.m4 b/data/c++.m4
index d3b78f1..14dd077 100644
--- a/data/c++.m4
+++ b/data/c++.m4
@@ -256,7 +256,7 @@ m4_define([b4_public_types_define],
   template <typename Base>
   inline
   ]b4_parser_class_name[::basic_symbol<Base>&
-  ]b4_parser_class_name[::basic_symbol<Base>::operator= (const basic_symbol& 
other)
+  ]b4_parser_class_name[::basic_symbol<Base>::operator= (const basic_symbol&)
   {
     abort ();
   }
diff --git a/tests/c++.at b/tests/c++.at
index b43e078..ad08b8a 100644
--- a/tests/c++.at
+++ b/tests/c++.at
@@ -781,11 +781,14 @@ exp: ZERO
 
 int yylex (yy::parser::semantic_type *yylval)
 {
+  (void) *yylval;
   return yy::parser::token::ZERO;
 }
 
 void yy::parser::error (std::string const& msg)
-{}
+{
+  (void) msg;
+}
 
 int main()
 {}
-- 
1.8.1




reply via email to

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