Fix attribute parsing on gcc 11.1.0
Fixes following compilation error:
"osmo-mgw/src/libosmo-mgcp/mgcp_stat.c:39:1: error: ‘integer’ attribute directive ignored"
Change-Id: Ia5167068abe8a22cd35a833396cbd7cb531c7e83
Fixes: f936e10f07
changes/54/25454/3
parent
fbf78d13f1
commit
a0b69f1896
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue