]> git.saurik.com Git - bison.git/commitdiff
* src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
authorAkim Demaille <akim@epita.fr>
Fri, 30 Nov 2001 11:11:08 +0000 (11:11 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 30 Nov 2001 11:11:08 +0000 (11:11 +0000)
if body instead of `;' to pacify GCC's warnings.

ChangeLog
src/bison.simple

index 285053ada53d809dd8f5dd8540b9ec063a124416..8e22da3ec9c4cd40d9c522c6c696db422f70df73 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index ec697755a601f6ccc05676cac0658d4ead61c9d0..28869318758d940040653acdb5f279e5b69bf891 100644 (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)