From fa42e88f9b9e89a2756cec5c72ce85f713233055 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 17 May 2003 12:40:32 +0000 Subject: [PATCH] (Fgarbage_collect): Cast pointers into specpdl to avoid GCC warning. --- src/alloc.c | 5 +++-- 1 file 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 mark_byte_stack (); for (bind = specpdl; bind != specpdl_ptr; bind++) { - mark_object (&bind->symbol); - mark_object (&bind->old_value); + /* These casts avoid a warning for discarding `volatile'. */ + mark_object ((Lisp_Object *) &bind->symbol); + mark_object ((Lisp_Object *) &bind->old_value); } for (catch = catchlist; catch; catch = catch->next) { -- 2.39.2