From af916f1c7bc15935034364b9c646193cefe54709 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Mon, 1 Feb 2021 09:25:34 +0100 Subject: 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 --- include/osmocom/sim/sim.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \ } -- cgit v1.2.3