aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorRichard M. Stallman2003-05-17 12:40:32 +0000
committerRichard M. Stallman2003-05-17 12:40:32 +0000
commitfa42e88f9b9e89a2756cec5c72ce85f713233055 (patch)
tree56056501be2d3887f2daaefffa2aad2ef38c6d74 /src/alloc.c
parent3b623bffe2b4fffeabc0479acc2e0551d56d3582 (diff)
downloademacs-fa42e88f9b9e89a2756cec5c72ce85f713233055.tar.gz
emacs-fa42e88f9b9e89a2756cec5c72ce85f713233055.zip
(Fgarbage_collect): Cast pointers into specpdl to avoid GCC warning.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c
index f82cde61c27..5230b5a7a82 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -4215,8 +4215,9 @@ Garbage collection happens automatically if you cons more than
4215 mark_byte_stack (); 4215 mark_byte_stack ();
4216 for (bind = specpdl; bind != specpdl_ptr; bind++) 4216 for (bind = specpdl; bind != specpdl_ptr; bind++)
4217 { 4217 {
4218 mark_object (&bind->symbol); 4218 /* These casts avoid a warning for discarding `volatile'. */
4219 mark_object (&bind->old_value); 4219 mark_object ((Lisp_Object *) &bind->symbol);
4220 mark_object ((Lisp_Object *) &bind->old_value);
4220 } 4221 }
4221 for (catch = catchlist; catch; catch = catch->next) 4222 for (catch = catchlist; catch; catch = catch->next)
4222 { 4223 {