소스 검색

presence: fix warning conflicting prototype

> Warning: presence_dmq.c:38:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
> int pres_dmq_send_all_presentities();
>     ^
> presence_dmq.c:487:5: note: conflicting prototype is here
> int pres_dmq_send_all_presentities(dmq_node_t *dmq_node)
>     ^
> 1 warning generated.

(cherry picked from commit 03e49d4e1d806f39ee6aadaedd183a6578108d96)
Victor Seva 11 달 전
부모
커밋
fa959e8cfd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/modules/presence/presence_dmq.c

+ 1 - 1
src/modules/presence/presence_dmq.c

@@ -35,7 +35,7 @@ dmq_api_t pres_dmqb;
 dmq_peer_t *pres_dmq_peer = NULL;
 dmq_resp_cback_t pres_dmq_resp_callback = {&pres_dmq_resp_callback_f, 0};
 
-int pres_dmq_send_all_presentities();
+int pres_dmq_send_all_presentities(dmq_node_t *dmq_node);
 int pres_dmq_request_sync();
 
 /**