diff options
| author | Richard M. Stallman | 2003-05-17 12:40:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-05-17 12:40:32 +0000 |
| commit | fa42e88f9b9e89a2756cec5c72ce85f713233055 (patch) | |
| tree | 56056501be2d3887f2daaefffa2aad2ef38c6d74 /src/alloc.c | |
| parent | 3b623bffe2b4fffeabc0479acc2e0551d56d3582 (diff) | |
| download | emacs-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.c | 5 |
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 | { |