[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] ide: fix enum comparison for gcc 4.7
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v2] ide: fix enum comparison for gcc 4.7 |
Date: |
Thu, 21 Sep 2017 13:25:28 +0100 |
User-agent: |
Mutt/1.8.3 (2017-05-23) |
On Wed, Sep 20, 2017 at 09:38:21PM -0400, John Snow wrote:
> 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>
>
> ---
>
> v2: Second verse, same as the first.
> Signed-off-by: John Snow <address@hidden>
> ---
> hw/ide/ahci.c | 2 +-
> hw/ide/core.c | 2 +-
> include/hw/ide/internal.h | 3 +--
> 3 files changed, 3 insertions(+), 4 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>