From d7b8ebbc687ea840913ecb6fa6f020df901e8fb9 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Wed, 20 Mar 2024 09:01:08 +0100 Subject: [PATCH] MT#58535 Add an empty statement after `rtpp-flags` parsing A fix for bullseye/buster and focal: call_interfaces.c: In function 'call_ng_main_flags': call_interfaces.c:1828:4: error: a label can only be part of a statement and a declaration is not a statement 1828 | bencode_item_t * dict; | ^~~~~~~~~~~~~~ make[3]: *** [: call_interfaces.strhash.o] Error 1 Switch case has to be followed by a statement, and the declaration is not, so just follow it by the empty statement. Change-Id: I7c5ef62dec9ceb404736ec3c4bed84f04b892d24 --- daemon/call_interfaces.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/call_interfaces.c b/daemon/call_interfaces.c index 1c7c60473..e0c6083e0 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -1822,8 +1822,8 @@ static void call_ng_main_flags(sdp_ng_flags *out, str *key, bencode_item_t *valu case CSH_LOOKUP("RTCP-mux"): call_ng_flags_str_list(out, value, call_ng_flags_rtcp_mux, NULL); break; - case CSH_LOOKUP("rtpp-flags"): - case CSH_LOOKUP("rtpp_flags"): + case CSH_LOOKUP("rtpp-flags"):; + case CSH_LOOKUP("rtpp_flags"):; /* new dictionary to store rtpp_flags */ bencode_item_t * dict; dict = bencode_dictionary(value->buffer);