<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/22588">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sim: fix gcc 4.9.2 + -std=gnu11 error<br><br>Remove "(const struct osim_card_sw)" infront of OSIM_CARD_SW_LAST, so<br>debian 8's gcc 4.9.2 doesn't fail anymore with the following error each<br>time the macro is used:<br>  card_fs_sim.c:105:1: error: initializer element is not constant<br><br>I verified with docker that there aren't any other build errors with gcc<br>4.9.2.<br><br>Fixes: OS#4991<br>Change-Id: I9d3abbf9812dc09201eff0e9f7542cddedb6848b<br>---<br>M include/osmocom/sim/sim.h<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/sim/sim.h b/include/osmocom/sim/sim.h</span><br><span>index bfd1ac9..72e7904 100644</span><br><span>--- a/include/osmocom/sim/sim.h</span><br><span>+++ b/include/osmocom/sim/sim.h</span><br><span>@@ -283,7 +283,7 @@</span><br><span>       } u;</span><br><span> };</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#define OSIM_CARD_SW_LAST (const struct osim_card_sw) {   \</span><br><span style="color: hsl(120, 100%, 40%);">+#define OSIM_CARD_SW_LAST    {                       \</span><br><span>    .code = 0, .mask = 0, .type = SW_TYPE_NONE,     \</span><br><span>    .class = SW_CLS_NONE, .u.str = NULL             \</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/22588">change 22588</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/22588"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I9d3abbf9812dc09201eff0e9f7542cddedb6848b </div>
<div style="display:none"> Gerrit-Change-Number: 22588 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>