aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-02-01 09:25:34 +0100
committerlaforge <laforge@osmocom.org>2021-02-01 09:19:34 +0000
commitaf916f1c7bc15935034364b9c646193cefe54709 (patch)
tree49bcb7d8b1d40e3406c14f840f05483565274399
parentd0835760641b3d29bf99f5ddbe8403f5e00166fc (diff)
sim: fix gcc 4.9.2 + -std=gnu11 error
Remove "(const struct osim_card_sw)" infront of OSIM_CARD_SW_LAST, so debian 8's gcc 4.9.2 doesn't fail anymore with the following error each time the macro is used: card_fs_sim.c:105:1: error: initializer element is not constant I verified with docker that there aren't any other build errors with gcc 4.9.2. Fixes: OS#4991 Change-Id: I9d3abbf9812dc09201eff0e9f7542cddedb6848b
-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 bfd1ac94..72e79046 100644
--- a/include/osmocom/sim/sim.h
+++ b/include/osmocom/sim/sim.h
@@ -283,7 +283,7 @@ struct osim_card_sw {
} u;
};
-#define OSIM_CARD_SW_LAST (const struct osim_card_sw) { \
+#define OSIM_CARD_SW_LAST { \
.code = 0, .mask = 0, .type = SW_TYPE_NONE, \
.class = SW_CLS_NONE, .u.str = NULL \
}