]> git.saurik.com Git - bison.git/commitdiff
Avoid empty-if warnings.
authorAkim Demaille <demaille@gostai.com>
Wed, 30 Jul 2008 09:03:52 +0000 (11:03 +0200)
committerAkim Demaille <demaille@gostai.com>
Fri, 7 Nov 2008 20:38:40 +0000 (21:38 +0100)
Reported by Quentin Hocquet.

* data/lalr1-fusion.cc (YY_SYMBOL_PRINT, YY_REDUCE_PRINT)
(YY_STACK_PRINT): Provide some contents even when !YYDEBUG.

ChangeLog
data/lalr1-fusion.cc

index 635947965e1ea0db737d9cc3fed8bd17fb05f30e..0bde10f863ed11f35d27375bb86493d949bba557 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-11-07  Akim Demaille  <demaille@gostai.com>
+
+       Avoid empty-if warnings.
+       Reported by Quentin Hocquet.
+       
+       * data/lalr1-fusion.cc (YY_SYMBOL_PRINT, YY_REDUCE_PRINT)
+       (YY_STACK_PRINT): Provide some contents even when !YYDEBUG.
+
 2008-11-07  Akim Demaille  <demaille@gostai.com>
 
        Pass command line location to skeleton_arg and language_argmatch.
index 20f1cb8cbc16f7ce834626fed38eb5a6e6c84a43..dc321881a00f555706619c69d6b014b030ba71a7 100644 (file)
@@ -584,9 +584,9 @@ b4_percent_code_get[]dnl
 #else /* !YYDEBUG */
 
 # define YYCDEBUG if (false) std::cerr
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
-# define YY_REDUCE_PRINT(Rule)
-# define YY_STACK_PRINT()
+# define YY_SYMBOL_PRINT(Title, Type, Value, Location)  static_cast<void>(0)
+# define YY_REDUCE_PRINT(Rule)                          static_cast<void>(0)
+# define YY_STACK_PRINT()                               static_cast<void>(0)
 
 #endif /* !YYDEBUG */