summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorRichard Henderson2018-05-08 20:55:20 +0200
committerPeter Maydell2018-05-11 12:12:02 +0200
commit5cbc61110738accb16ff8ed1f08a32906d02790f (patch)
tree1f6cc8d4c74ca5d08d7a4cff1796097db1090c11 /include/exec
parentMerge remote-tracking branch 'remotes/riscv/tags/riscv-qemu-2.13-minor-fixes-... (diff)
downloadqemu-5cbc61110738accb16ff8ed1f08a32906d02790f.tar.gz
qemu-5cbc61110738accb16ff8ed1f08a32906d02790f.tar.xz
qemu-5cbc61110738accb16ff8ed1f08a32906d02790f.zip
target/m68k: Fix build Werror with gcc 8.0.1
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 switch to merge default with OS_LONG, which returns directly. This removes the unreachable path. Cc: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-id: 20180508185520.23757-1-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions