From: Akim Demaille Date: Tue, 25 Sep 2012 12:14:57 +0000 (+0200) Subject: lalr1.cc: don't leave macros define to nothing X-Git-Tag: v2.6.90~89 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/88322b77b174bc1ebd85eef290e41fc001b21f07 lalr1.cc: don't leave macros define to nothing * data/lalr1.cc (YY_SYMBOL_PRINT, YY_REDUCE_PRINT, YY_STACK_PRINT): Define to something so that, for instance, "if (foo) YY_SYMBOL_PRINT" is valid even when !YYDEBUG. --- diff --git a/data/lalr1.cc b/data/lalr1.cc index 82e68244..308290ad 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -335,9 +335,9 @@ do { \ #else /* !]b4_api_PREFIX[DEBUG */ # 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) YYUSE(Type) +# define YY_REDUCE_PRINT(Rule) static_cast(0) +# define YY_STACK_PRINT() static_cast(0) #endif /* !]b4_api_PREFIX[DEBUG */