Re: [Qemu-devel] [PATCH] target/m68k: Fix build Werror with gcc 8.0.1

2018-05-11 Thread Peter Maydell
On 8 May 2018 at 21:42, Laurent Vivier wrote: > Le 08/05/2018 à 20:55, Richard Henderson a écrit : >> Fedora 28 ships with the released gcc 8. >> >> The Werror stems from the compiler finding a path through the second >> switch via a missing default case in which src1 is

Re: [Qemu-devel] [PATCH] target/m68k: Fix build Werror with gcc 8.0.1

2018-05-08 Thread Laurent Vivier
Le 08/05/2018 à 20:55, Richard Henderson a écrit : > Fedora 28 ships with the released gcc 8. > > The Werror stems from the compiler finding a path through the second > switch via a missing default case in which src1 is uninitialized, and > not being able to prove that the missing default case is

[Qemu-devel] [PATCH] target/m68k: Fix build Werror with gcc 8.0.1

2018-05-08 Thread Richard Henderson
Fedora 28 ships with the released gcc 8. The Werror stems from the compiler finding a path through the second switch via a missing default case in which src1 is uninitialized, and not being able to prove that the missing default case is unreachable due to the first switch. Simplify the second