Mercurial > emacs
diff src/alloc.c @ 51029:ffa1dc43c997
(Fgarbage_collect): Cast pointers into specpdl to avoid GCC warning.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Sat, 17 May 2003 12:40:32 +0000 |
| parents | fedd03de0f46 |
| children | 42d9bef83464 |
line wrap: on
line diff
--- a/src/alloc.c Sat May 17 10:17:57 2003 +0000 +++ b/src/alloc.c Sat May 17 12:40:32 2003 +0000 @@ -4215,8 +4215,9 @@ 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) {
