ppc/pnv: fix PnvChip redefinition in <hw/ppc/pnv_xscom.h>
authorCédric Le Goater <clg@kaod.org>
Fri, 19 Jan 2018 08:15:11 +0000 (09:15 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 27 Jan 2018 06:25:27 +0000 (17:25 +1100)
This redefinition generates warnings on some clang compilers and older
gcc4.4.

...include/hw/ppc/pnv_xscom.h:24:24: warning: redefinition of typedef 'PnvChip' is a C11
      feature [-Wtypedef-redefinition]
typedef struct PnvChip PnvChip;
                       ^
...include/hw/ppc/pnv.h:65:3: note: previous definition is here
} PnvChip;
  ^
1 warning generated.
  CC      ppc64-softmmu/hw/ppc/pnv_xscom.o

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
include/hw/ppc/pnv_xscom.h

index fb1bd5df095a5cc30b5a202da749034711362dee..255b26a5aaf6ae06eac217814b1e58c9185295f2 100644 (file)
@@ -21,8 +21,6 @@
 
 #include "qom/object.h"
 
-typedef struct PnvChip PnvChip;
-
 typedef struct PnvXScomInterface {
     Object parent;
 } PnvXScomInterface;