Browse Source

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]: *** [<builtin>: 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
pull/1809/head
Donat Zenichev 2 years ago
parent
commit
d7b8ebbc68
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/call_interfaces.c

+ 2
- 2
daemon/call_interfaces.c View File

@ -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);


Loading…
Cancel
Save