diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-03-18 12:35:49 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-03-21 15:51:06 +0000 |
commit | 642714943a554898645921eb39aa28d26da3f65c (patch) | |
tree | 45a31b913f1d45a0f816c53277dd1920ae9e81dd | |
parent | cccdabfdc2d51d023a39264489e0b1b75f57c17b (diff) | |
download | libnice-642714943a554898645921eb39aa28d26da3f65c.tar.gz |
agent: Fix warning about required glib version
../agent/discovery.c: In function ‘on_refresh_remove_timeout’:
../agent/discovery.c:203:13: warning: Not available before 2.60
203 | G_GNUC_FALLTHROUGH;
| ^~~~~~~~~~~~~
../agent/conncheck.c: In function ‘priv_turn_allocate_refresh_retransmissions_tick_agent_locked’:
../agent/conncheck.c:1656:13: warning: Not available before 2.60
1656 | G_GNUC_FALLTHROUGH;
| ^~~~~~~~~~~~~
The comment /* fall through */ is enough to cause GCC and Clang to not
emit the implicit-fallthrough warning.
-rw-r--r-- | agent/conncheck.c | 2 | ||||
-rw-r--r-- | agent/discovery.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/agent/conncheck.c b/agent/conncheck.c index cd8f9cf..d99f948 100644 --- a/agent/conncheck.c +++ b/agent/conncheck.c @@ -1653,7 +1653,7 @@ static gboolean priv_turn_allocate_refresh_retransmissions_tick_agent_locked ( agent_socket_send (cand->nicesock, &cand->server, stun_message_length (&cand->stun_message), (gchar *)cand->stun_buffer); - G_GNUC_FALLTHROUGH; + /* fall through */ case STUN_USAGE_TIMER_RETURN_SUCCESS: agent_timeout_add_with_context (agent, &cand->tick_source, "Candidate TURN refresh", stun_timer_remainder (&cand->timer), diff --git a/agent/discovery.c b/agent/discovery.c index 872c309..4231804 100644 --- a/agent/discovery.c +++ b/agent/discovery.c @@ -200,7 +200,7 @@ static gboolean on_refresh_remove_timeout (NiceAgent *agent, agent_socket_send (cand->nicesock, &cand->server, stun_message_length (&cand->stun_message), (gchar *)cand->stun_buffer); - G_GNUC_FALLTHROUGH; + /* fall through */ case STUN_USAGE_TIMER_RETURN_SUCCESS: agent_timeout_add_with_context (agent, &cand->tick_source, "TURN deallocate retransmission", stun_timer_remainder (&cand->timer), |