aboutsummaryrefslogtreecommitdiff
path: root/target-xtensa/core-dc232b.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-09-14 20:36:33 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2014-11-02 10:04:34 +0300
commit11693a6cf0c3fac2e0ad64f06978095f85f0ec8a (patch)
tree5caa16e80b946edaf8570369a29e6940d1a701e8 /target-xtensa/core-dc232b.c
parentd6aaddfe977417e3df4fc8a0fc0b4cc015909b84 (diff)
target-xtensa: mark XtensaConfig structs as unused
The XtensaConfig structs will be defined but not used if they are for the opposite endianness from that of the binary being built; keep the compiler from complaining about this by marking them with the 'unused' attribute. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'target-xtensa/core-dc232b.c')
-rw-r--r--target-xtensa/core-dc232b.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-xtensa/core-dc232b.c b/target-xtensa/core-dc232b.c
index c51e11e6d7..a3b914bad4 100644
--- a/target-xtensa/core-dc232b.c
+++ b/target-xtensa/core-dc232b.c
@@ -33,7 +33,7 @@
#include "core-dc232b/core-isa.h"
#include "overlay_tool.h"
-static const XtensaConfig dc232b = {
+static const XtensaConfig dc232b __attribute__((unused)) = {
.name = "dc232b",
.gdb_regmap = {
.num_regs = 120,