summary refs log tree commit diff stats
path: root/hw/i2c/smbus.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2018-11-28 10:35:36 +0100
committerPeter Maydell <peter.maydell@linaro.org>2018-11-28 13:51:41 +0000
commitea066d39acbcfe4fcfb4807316ab3ada03218fcc (patch)
tree9e6cdb24d8d315c4f37e0e75c9463e0ff26a8f30 /hw/i2c/smbus.c
parentc56606684ad253fad1fc160a225295bcfb3fba14 (diff)
downloadfocaccia-qemu-ea066d39acbcfe4fcfb4807316ab3ada03218fcc.tar.gz
focaccia-qemu-ea066d39acbcfe4fcfb4807316ab3ada03218fcc.zip
hw/arm/aspeed: Fix build issue with clang 3.4
When using clang 3.4.2, compilation of QEMU fails like this:

  CC      aarch64-softmmu/hw/arm/aspeed.o
hw/arm/aspeed.c:36:3: error: redefinition of typedef 'AspeedBoardState' is a C11
      feature [-Werror,-Wtypedef-redefinition]
} AspeedBoardState;
  ^
include/hw/arm/aspeed.h:14:33: note: previous definition is here
typedef struct AspeedBoardState AspeedBoardState;
                                ^
1 error generated.
make[1]: *** [hw/arm/aspeed.o] Error 1
make: *** [subdir-aarch64-softmmu] Error 2

Remove the duplicated typedef to fix this issue.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-id: 1543397736-8198-1-git-send-email-thuth@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/i2c/smbus.c')
0 files changed, 0 insertions, 0 deletions