summaryrefslogtreecommitdiff
path: root/os_dep.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-02-03 19:34:47 +0400
committerIvan Maidanski <ivmai@mail.ru>2012-02-03 19:34:47 +0400
commit5742f863a8db6d2dd118c21c6d8cfb11d0beb821 (patch)
treea91cba55a641333c7e06b7f9ba0c99a4115cd637 /os_dep.c
parentd012f92cbe38cb4151aca5a66ef4f49b9b48a349 (diff)
downloadbdwgc-5742f863a8db6d2dd118c21c6d8cfb11d0beb821.tar.gz
Prevent compiler warnings in GC_FindTopOfStack and GC_ports (Darwin)
* darwin_stop_world.c (GC_FindTopOfStack): Initialize "frame" local variable from "stack_start" unless done via PPC lwz/ld instruction (to prevent "uninitialized variable use" compiler warning; add assertion for "stack_start" value; add 'U' suffix to int constant to prevent comparison of signed and unsigned value. * os_dep.c (GC_ports): Explicitly initialize "reply" field to zero if THREADS (to suppress compiler warning on Darwin).
Diffstat (limited to 'os_dep.c')
-rw-r--r--os_dep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/os_dep.c b/os_dep.c
index c4058416..03a0ca8d 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -3900,6 +3900,9 @@ STATIC struct {
(void (*)(void))catch_exception_raise_state,
(void (*)(void))catch_exception_raise_state_identity
},
+# ifdef THREADS
+ 0, /* for 'exception' */
+# endif
0
};