]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target-xtensa: mark XtensaConfig structs as unused
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 14 Sep 2014 19:36:33 +0000 (20:36 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 2 Nov 2014 07:04:34 +0000 (10:04 +0300)
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>
target-xtensa/core-dc232b.c
target-xtensa/core-dc233c.c
target-xtensa/core-fsf.c

index c51e11e6d7392fb486fc3dcdb6e73baa29559a58..a3b914bad4a77092c6712b0c6a0e18081920cee0 100644 (file)
@@ -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,
index 42dd64f031df7e73dfaee92ec74ba8e9f097d209..ac745d106ff3ae76757acdb958f9cbbea3b77bbf 100644 (file)
@@ -34,7 +34,7 @@
 #include "core-dc233c/core-isa.h"
 #include "overlay_tool.h"
 
-static const XtensaConfig dc233c = {
+static const XtensaConfig dc233c __attribute__((unused)) = {
     .name = "dc233c",
     .gdb_regmap = {
         .num_regs = 121,
index 6859bee062cc2ea45e505fcd3336d39b281eda5d..cfcc840255ee850e347695426152b6c4e3099d6f 100644 (file)
@@ -33,7 +33,7 @@
 #include "core-fsf/core-isa.h"
 #include "overlay_tool.h"
 
-static const XtensaConfig fsf = {
+static const XtensaConfig fsf __attribute__((unused)) = {
     .name = "fsf",
     /* GDB for this core is not supported currently */
     .clock_freq_khz = 10000,