changeset 3486:4cc26ec3f0de

[xemacs-hg @ 2006-07-02 07:32:19 by stephent] Quiet GCC4 whining about unused values. <8764ig79bx.fsf_-_@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Sun, 02 Jul 2006 07:32:20 +0000
parents 0fca84a337d8
children d292425e3e15
files src/ChangeLog src/gc.c
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Jul 01 21:51:05 2006 +0000
+++ b/src/ChangeLog	Sun Jul 02 07:32:20 2006 +0000
@@ -1,3 +1,7 @@
+2006-06-24  Stephen J. Turnbull  <stephen@xemacs.org>
+
+	* gc.c (gc_mark_root_set): Quiet GCC 4 whining about unused values.
+
 2006-06-29  Jerry James  <james@xemacs.org>
 
 	* scrollbar-gtk.c (gtk_free_scrollbar_instance): Compare
--- a/src/gc.c	Sat Jul 01 21:51:05 2006 +0000
+++ b/src/gc.c	Sun Jul 02 07:32:20 2006 +0000
@@ -1623,29 +1623,25 @@
   { /* staticpro() */
     Lisp_Object **p = Dynarr_begin (staticpros);
     Elemcount count;
-    for (count = Dynarr_length (staticpros); count; count--)
+    for (count = Dynarr_length (staticpros); count; count--, p++)
       /* Need to check if the pointer in the staticpro array is not
 	 NULL. A gc can occur after variable is added to the staticpro
 	 array and _before_ it is correctly initialized. In this case
 	 its value is NULL, which we have to catch here. */
       if (*p)
-	mark_object (**p++);
-      else
-	**p++;
+	mark_object (**p);
   }
 
   { /* staticpro_nodump() */
     Lisp_Object **p = Dynarr_begin (staticpros_nodump);
     Elemcount count;
-    for (count = Dynarr_length (staticpros_nodump); count; count--)
+    for (count = Dynarr_length (staticpros_nodump); count; count--, p++)
       /* Need to check if the pointer in the staticpro array is not
 	 NULL. A gc can occur after variable is added to the staticpro
 	 array and _before_ it is correctly initialized. In this case
 	 its value is NULL, which we have to catch here. */
       if (*p)
-	mark_object (**p++);
-      else
-	**p++;
+	mark_object (**p);
   }
 
 #ifdef NEW_GC