Skip to content

Commit

Permalink
ppc/pnv: fix PnvChip redefinition in <hw/ppc/pnv_xscom.h>
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
legoater authored and dgibson committed Jan 27, 2018
1 parent e607bbe commit 9eff783
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/hw/ppc/pnv_xscom.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

#include "qom/object.h"

typedef struct PnvChip PnvChip;

typedef struct PnvXScomInterface {
Object parent;
} PnvXScomInterface;
Expand Down

0 comments on commit 9eff783

Please sign in to comment.