qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 5cbc61: target/m68k: Fix build Werror with gc


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 5cbc61: target/m68k: Fix build Werror with gcc 8.0.1
Date: Fri, 11 May 2018 04:06:48 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 5cbc61110738accb16ff8ed1f08a32906d02790f
      
https://github.com/qemu/qemu/commit/5cbc61110738accb16ff8ed1f08a32906d02790f
  Author: Richard Henderson <address@hidden>
  Date:   2018-05-11 (Fri, 11 May 2018)

  Changed paths:
    M target/m68k/translate.c

  Log Message:
  -----------
  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 <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Message-id: address@hidden
Signed-off-by: Peter Maydell <address@hidden>



      **NOTE:** This service been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]