* src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty

if body instead of `;' to pacify GCC's warnings.
This commit is contained in:
Akim Demaille
2001-11-30 11:11:08 +00:00
parent d39a6b7ca9
commit 9e55edfc29
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2001-11-30 Akim Demaille <akim@epita.fr>
* src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
if body instead of `;' to pacify GCC's warnings.
2001-11-30 Akim Demaille <akim@epita.fr>
Instead of mapping the LHS of unused rules to -1, keep the LHS

View File

@@ -78,7 +78,8 @@
#if YYSTACK_USE_ALLOCA
# define YYSTACK_ALLOC alloca
# define YYSTACK_FREE(Ptr) /* empty */
/* Pacify GCC's `empty if-body' warning. */
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
#else
# define YYSTACK_ALLOC malloc
# define YYSTACK_FREE(Ptr) free (Ptr)