bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: proposed namespace cleanup for bison.simple


From: Akim Demaille
Subject: Re: proposed namespace cleanup for bison.simple
Date: 30 Nov 2001 12:10:50 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Civil Service)

On a second thought, I'm applying this.

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
        if body instead of `;' to pacify GCC's warnings.

Index: src/bison.simple
===================================================================
RCS file: /cvsroot/bison/bison/src/bison.simple,v
retrieving revision 1.53.2.8
diff -u -u -r1.53.2.8 bison.simple
--- src/bison.simple 2001/11/30 02:47:56 1.53.2.8
+++ src/bison.simple 2001/11/30 11:10:35
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]