<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25454">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Fix attribute parsing on gcc 11.1.0<br><br>Fixes following compilation error:<br>"osmo-mgw/src/libosmo-mgcp/mgcp_stat.c:39:1: error: â€˜integer’ attribute directive ignored"<br><br>Fixes: f936e10f07b7a55d53a6f426b80364f6d368c5a0<br>Change-Id: Ia5167068abe8a22cd35a833396cbd7cb531c7e83<br>---<br>M src/libosmo-mgcp/mgcp_stat.c<br>1 file changed, 8 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/54/25454/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/libosmo-mgcp/mgcp_stat.c b/src/libosmo-mgcp/mgcp_stat.c</span><br><span>index 357b593..948d729 100644</span><br><span>--- a/src/libosmo-mgcp/mgcp_stat.c</span><br><span>+++ b/src/libosmo-mgcp/mgcp_stat.c</span><br><span>@@ -32,6 +32,9 @@</span><br><span> /* Helper function for mgcp_format_stats_rtp() to calculate packet loss */</span><br><span> #if defined(__has_attribute)</span><br><span> #if __has_attribute(no_sanitize)</span><br><span style="color: hsl(120, 100%, 40%);">+/* GCC 11.1.0 throws error: "error: 'integer' attribute directive ignored" */</span><br><span style="color: hsl(120, 100%, 40%);">+#pragma GCC diagnostic push</span><br><span style="color: hsl(120, 100%, 40%);">+#pragma GCC diagnostic ignored "-Wattributes"</span><br><span> __attribute__((no_sanitize("integer")))</span><br><span> #endif</span><br><span> #endif</span><br><span>@@ -62,6 +65,11 @@</span><br><span>                         *loss = INT_MAX;</span><br><span>     }</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+#if defined(__has_attribute)</span><br><span style="color: hsl(120, 100%, 40%);">+#if __has_attribute(no_sanitize)</span><br><span style="color: hsl(120, 100%, 40%);">+#pragma GCC diagnostic pop</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span> </span><br><span> /* Helper function for mgcp_format_stats_rtp() to calculate jitter */</span><br><span> uint32_t calc_jitter(struct mgcp_rtp_state *state)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25454">change 25454</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/osmo-mgw/+/25454"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-mgw </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia5167068abe8a22cd35a833396cbd7cb531c7e83 </div>
<div style="display:none"> Gerrit-Change-Number: 25454 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>