mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* 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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user