From a0b69f189617278fb2e23fde0e92f328183109dd Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 16 Sep 2021 13:30:18 +0200 Subject: [PATCH] Fix attribute parsing on gcc 11.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes following compilation error: "osmo-mgw/src/libosmo-mgcp/mgcp_stat.c:39:1: error: ‘integer’ attribute directive ignored" Change-Id: Ia5167068abe8a22cd35a833396cbd7cb531c7e83 Fixes: f936e10f07b7a55d53a6f426b80364f6d368c5a0 --- src/libosmo-mgcp/mgcp_stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libosmo-mgcp/mgcp_stat.c b/src/libosmo-mgcp/mgcp_stat.c index 59ef9170e..e6798827f 100644 --- a/src/libosmo-mgcp/mgcp_stat.c +++ b/src/libosmo-mgcp/mgcp_stat.c @@ -33,7 +33,7 @@ /* Helper function for mgcp_format_stats_rtp() to calculate packet loss */ #if defined(__has_attribute) #if __has_attribute(no_sanitize) -__attribute__((no_sanitize("integer"))) +__attribute__((no_sanitize("undefined"))) #endif #endif void calc_loss(struct mgcp_conn_rtp *conn, uint32_t *expected, int *loss)