summaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-05-04 13:42:38 +0200
committerHarald Welte <laforge@gnumonks.org>2014-10-26 19:09:23 +0100
commite8dd2bd4b52f4ee6c3ecb4a5b4b4386d281b35a7 (patch)
tree9ae90577e883a322a1b7075b8f1f99b02a06b930 /include/osmocom
parent2656e65bed12680d288c55dbe53e1d6c92bdfdc5 (diff)
sim: mark osim_msgb_cb as __may_alias__ to avoid gcc warnings
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/sim/sim.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocom/sim/sim.h b/include/osmocom/sim/sim.h
index e1e9997e..4e63905e 100644
--- a/include/osmocom/sim/sim.h
+++ b/include/osmocom/sim/sim.h
@@ -54,7 +54,7 @@ struct osim_msgb_cb {
uint16_t lc; /*!< number of bytes in the command data field Nc, which will encoded in 0, 1 or 3 bytes into Lc, depending on the case */
uint16_t le; /*!< maximum number of bytes expected in the response data field, which will encoded in 0, 1, 2 or 3 bytes into Le, depending on the case */
uint16_t sw; /*!< status word, composed of SW1 and SW2 bytes */
-};
+} __attribute__((__may_alias__));
#define OSIM_MSGB_CB(__msgb) ((struct osim_msgb_cb *)&((__msgb)->cb[0]))
/*! \brief status word from msgb->cb */
#define msgb_apdu_case(__x) OSIM_MSGB_CB(__x)->apduc