]> granicus.if.org Git - gc/commit
Prevent compiler warnings in GC_FindTopOfStack and GC_ports (Darwin)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 3 Feb 2012 15:34:47 +0000 (19:34 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 3 Feb 2012 15:34:47 +0000 (19:34 +0400)
commit5742f863a8db6d2dd118c21c6d8cfb11d0beb821
treea91cba55a641333c7e06b7f9ba0c99a4115cd637
parentd012f92cbe38cb4151aca5a66ef4f49b9b48a349
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).
darwin_stop_world.c
os_dep.c