* bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 17 Mar 2011 02:11:29 +0000 (19:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 17 Mar 2011 02:11:29 +0000 (19:11 -0700)
src/ChangeLog
src/bytecode.c

index 5abc9b6..9dcab33 100644 (file)
@@ -1,5 +1,7 @@
 2011-03-17  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
+
        * unexelf.c (unexec): Name an expression,
        to avoid gcc -Wbad-function-cast warning.
        Use a different way to cause a compilation error if anyone uses
index bb4e87c..fca8a8e 100644 (file)
@@ -363,6 +363,7 @@ unmark_byte_stack (void)
    We do this at every branch, to avoid loops that never GC.  */
 
 #define MAYBE_GC()                                     \
+ do {                                                  \
   if (consing_since_gc > gc_cons_threshold             \
       && consing_since_gc > gc_relative_threshold)     \
     {                                                  \
@@ -370,7 +371,7 @@ unmark_byte_stack (void)
       Fgarbage_collect ();                             \
       AFTER_POTENTIAL_GC ();                           \
     }                                                  \
-  else
+ } while (0)
 
 /* Check for jumping out of range.  */