Browse Source

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 tháng trước cách đây
mục cha
commit
fa959e8cfd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();
 
 /**