Skip to content

Commit

Permalink
target-xtensa: mark XtensaConfig structs as unused
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Max Filippov <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
  • Loading branch information
pm215 authored and Michael Tokarev committed Nov 2, 2014
1 parent d6aaddf commit 11693a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion target-xtensa/core-dc232b.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion target-xtensa/core-dc233c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion target-xtensa/core-fsf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 11693a6

Please sign in to comment.