User: stephent
Date: 06/07/02 09:32:22
Modified: xemacs/src ChangeLog gc.c
Log:
Quiet GCC4 whining about unused values.
<8764ig79bx.fsf_-_(a)tleepslib.sk.tsukuba.ac.jp>
Revision Changes Path
1.982 +4 -0 XEmacs/xemacs/src/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.981
retrieving revision 1.982
diff -u -p -r1.981 -r1.982
--- ChangeLog 2006/06/29 16:58:59 1.981
+++ ChangeLog 2006/07/02 07:32:19 1.982
@@ -1,3 +1,7 @@
+2006-06-24 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * gc.c (gc_mark_root_set): Quiet GCC 4 whining about unused values.
+
2006-06-29 Jerry James <james(a)xemacs.org>
* scrollbar-gtk.c (gtk_free_scrollbar_instance): Compare
1.5 +4 -8 XEmacs/xemacs/src/gc.c
Index: gc.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/gc.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- gc.c 2006/03/28 17:43:53 1.4
+++ gc.c 2006/07/02 07:32:20 1.5
@@ -1623,29 +1623,25 @@ gc_mark_root_set (
{ /* 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