[Top][All Lists]

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

[Qemu-commits] [qemu/qemu] 159a9d: ide: fix enum comparison for gcc 4.7

From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 159a9d: ide: fix enum comparison for gcc 4.7
Date: Fri, 22 Sep 2017 06:02:56 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 159a9df02127cbf6fe640f67954794a99a12a005
  Author: John Snow <address@hidden>
  Date:   2017-09-22 (Fri, 22 Sep 2017)

  Changed paths:
    M hw/ide/ahci.c
    M hw/ide/core.c
    M include/hw/ide/internal.h

  Log Message:
  ide: fix enum comparison for gcc 4.7

Apparently GCC gets bent over comparing enum values against zero.
Replace the conditional with something less readable.

Tested-by: Mark Cave-Ayland <address@hidden>
Signed-off-by: John Snow <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Signed-off-by: Peter Maydell <address@hidden>

reply via email to

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