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 <weil@mail.berlios.de> Acked-by: Laurent Desnogues <laurent.desnogues@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
5a2b3fc5aa
commit
212df02975
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user