summaryrefslogtreecommitdiffstats
path: root/src/host/osmocon
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-06-12 17:14:34 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-06-13 13:42:52 +0200
commitf5481937a7f52dc6ca5b6505a82819186a3f1366 (patch)
treef58e27fae10417f82877434792847f2353566a12 /src/host/osmocon
parent40d9d853e826acf6636e86de0c14c854aac5c588 (diff)
osmocon: Set compiler attr to unused variables
Variables are not removed as they document the commands of the propietary romloader. Let's mark them as unused to avoid compilation warnings. Change-Id: If4c6814ada85956975e687eb43dcfd4ad70b8b94
Diffstat (limited to 'src/host/osmocon')
-rw-r--r--src/host/osmocon/osmocon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c
index 2e822e82..131eab74 100644
--- a/src/host/osmocon/osmocon.c
+++ b/src/host/osmocon/osmocon.c
@@ -210,13 +210,13 @@ static const uint8_t chainloader[] = {
/* Calypso romloader specific */
static const uint8_t romload_ident_cmd[] = { 0x3c, 0x69 }; /* <i */
-static const uint8_t romload_abort_cmd[] = { 0x3c, 0x61 }; /* <a */
+static const uint8_t __attribute__((__unused__)) romload_abort_cmd[] = { 0x3c, 0x61 }; /* <a */
static const uint8_t romload_write_cmd[] = { 0x3c, 0x77 }; /* <w */
static const uint8_t romload_checksum_cmd[] = { 0x3c, 0x63 }; /* <c */
static const uint8_t romload_branch_cmd[] = { 0x3c, 0x62 }; /* <b */
static const uint8_t romload_ident_ack[] = { 0x3e, 0x69 }; /* >i */
static const uint8_t romload_param_ack[] = { 0x3e, 0x70 }; /* >p */
-static const uint8_t romload_param_nack[] = { 0x3e, 0x50 }; /* >P */
+static const uint8_t __attribute__((__unused__)) romload_param_nack[] = { 0x3e, 0x50 }; /* >P */
static const uint8_t romload_block_ack[] = { 0x3e, 0x77 }; /* >w */
static const uint8_t romload_block_nack[] = { 0x3e, 0x57 }; /* >W */
static const uint8_t romload_checksum_ack[] = { 0x3e, 0x63 }; /* >c */