浏览代码

rtpproxy: fix compiler warnings

> rtpproxy.c: In function 'rtpproxy_rpc_list':
> rtpproxy.c:627:6: warning: unused variable 'len' [-Wunused-variable]
>   int len;
>       ^~~
> rtpproxy.c:626:6: warning: unused variable 'id_len' [-Wunused-variable]
>   int id_len;
>       ^~~~~~
> rtpproxy.c:625:8: warning: variable 'string' set but not used [-Wunused-but-set-variable]
>   char *string, *id;
>         ^~~~~~
Victor Seva 8 年之前
父节点
当前提交
e03a9d965a
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      src/modules/rtpproxy/rtpproxy.c

+ 0 - 5
src/modules/rtpproxy/rtpproxy.c

@@ -622,13 +622,8 @@ static void  rtpproxy_rpc_list(rpc_t* rpc, void* ctx)
 {
 	struct rtpp_set *rtpp_list;
 	struct rtpp_node *crt_rtpp;
-	char *string, *id;
-	int id_len;
-	int len;
 	void *vh;
 
-	string = id = 0;
-
 	if(rtpp_set_list ==NULL)
 		return;