Quash some "may be used uninitialized" warnings.
commit45407470dbc82a0a7ce3df65126bd3bcca8934f3
authorJay Krell <jaykrell@microsoft.com>
Fri, 30 Nov 2018 10:52:42 +0000 (30 02:52 -0800)
committerAleksey Kliger (λgeek) <akliger@gmail.com>
Wed, 5 Dec 2018 18:14:00 +0000 (5 13:14 -0500)
treed18a7cc5fd503fd8cfe35eecafc4fab4244e53cc
parent40f86511d4e4e1a93eaf3ed07908fd2f8f88fc22
Quash some "may be used uninitialized" warnings.

/s/mono/mono/mini/interp/interp.c: In function 'interp_entry_from_trampoline':
/s/mono/mono/mini/interp/interp.c:2422:3: warning: 'orig_domain' may be used uninitialized in this function [-Wmaybe-uninitialized]
   mono_threads_detach_coop (orig_domain, &attach_cookie);
   ^
/s/mono/mono/mini/interp/interp.c: In function 'interp_exec_method_full':
/s/mono/mono/mini/interp/interp.c:2695:4: warning: 'locals' may be used uninitialized in this function [-Wmaybe-uninitialized]
    memset (locals, 0, rtm->locals_size);
    ^
/s/mono/mono/mini/method-to-ir.c: In function 'mini_handle_enum_has_flag':
/s/mono/mono/mini/method-to-ir.c:3416:9: warning: 'load' may be used uninitialized in this function [-Wmaybe-uninitialized]
    load = mono_decompose_opcode (cfg, load);
         ^
At least the first two seem to be compiler weakness.
mono/mini/interp/interp.c
mono/mini/method-to-ir.c