mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 01:03: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>
|
2001-11-30 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
Instead of mapping the LHS of unused rules to -1, keep the LHS
|
Instead of mapping the LHS of unused rules to -1, keep the LHS
|
||||||
|
|||||||
@@ -78,7 +78,8 @@
|
|||||||
|
|
||||||
#if YYSTACK_USE_ALLOCA
|
#if YYSTACK_USE_ALLOCA
|
||||||
# define YYSTACK_ALLOC 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
|
#else
|
||||||
# define YYSTACK_ALLOC malloc
|
# define YYSTACK_ALLOC malloc
|
||||||
# define YYSTACK_FREE(Ptr) free (Ptr)
|
# define YYSTACK_FREE(Ptr) free (Ptr)
|
||||||
|
|||||||
Reference in New Issue
Block a user