diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2012-02-03 19:34:47 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2012-02-03 19:34:47 +0400 |
commit | 5742f863a8db6d2dd118c21c6d8cfb11d0beb821 (patch) | |
tree | a91cba55a641333c7e06b7f9ba0c99a4115cd637 /os_dep.c | |
parent | d012f92cbe38cb4151aca5a66ef4f49b9b48a349 (diff) | |
download | bdwgc-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 }; |