* 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:34 +00:00
parent 68f1e3edc3
commit 892a39950d
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

@@ -104,7 +104,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)