stats: make sanitizers happy
The test expects wrapping here, but the undefined sanitizer is not happy with that, so disable it. Change-Id: I59ec65519ea028d4628ba4b56c939aef70794abfchanges/46/25446/2
parent
e303fa9ff3
commit
f936e10f07
|
@ -30,6 +30,11 @@
|
|||
#include <osmocom/mgcp/mgcp_endp.h>
|
||||
|
||||
/* Helper function for mgcp_format_stats_rtp() to calculate packet loss */
|
||||
#if defined(__has_attribute)
|
||||
#if __has_attribute(no_sanitize)
|
||||
__attribute__((no_sanitize("integer")))
|
||||
#endif
|
||||
#endif
|
||||
void calc_loss(struct mgcp_conn_rtp *conn, uint32_t *expected, int *loss)
|
||||
{
|
||||
struct mgcp_rtp_state *state = &conn->state;
|
||||
|
|
Loading…
Reference in New Issue