From: Stefan Weil Date: Mon, 14 Dec 2009 09:54:49 +0000 (+0100) Subject: target-alpha: Fix compiler warning for gcc-4.3 (and older) X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~9296 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=212df029754caabba45f941fbd22ec219b934ef9;p=sdk%2Femulator%2Fqemu.git target-alpha: Fix compiler warning for gcc-4.3 (and older) "Old" compilers obviously are not able to recognise that all cases are handled here: qemu/target-alpha/helper.c:70: error: ‘round_mode’ may be used uninitialized in this function A small modification helps the compiler to do its jobs. gcc-4.4 does not need this, but is still not standard on all platforms. Signed-off-by: Stefan Weil Acked-by: Laurent Desnogues Signed-off-by: Aurelien Jarno --- diff --git a/target-alpha/helper.c b/target-alpha/helper.c index a658f97..be7d37b 100644 --- a/target-alpha/helper.c +++ b/target-alpha/helper.c @@ -95,6 +95,7 @@ void cpu_alpha_store_fpcr (CPUState *env, uint64_t val) round_mode = float_round_nearest_even; break; case 3: + default: /* this avoids a gcc (< 4.4) warning */ round_mode = float_round_up; break; }