Module: kamailio
Branch: master
Commit: 0dfb73732ec2f73bfb085bdca80ca5072c9417e0
URL:
https://github.com/kamailio/kamailio/commit/0dfb73732ec2f73bfb085bdca80ca50…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2017-01-05T15:17:40+01:00
mqueue: fix compiler warning
mqueue_mod.c: In function
'mqueue_rpc_get_size':
mqueue_mod.c:280:6: warning: unused variable 'status' [-Wunused-variable]
str status = {0, 0};
^~~~~~
---
Modified: src/modules/mqueue/mqueue_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0dfb73732ec2f73bfb085bdca80ca50…
Patch:
https://github.com/kamailio/kamailio/commit/0dfb73732ec2f73bfb085bdca80ca50…
---
diff --git a/src/modules/mqueue/mqueue_mod.c b/src/modules/mqueue/mqueue_mod.c
index 17e37c8..8f2c610 100644
--- a/src/modules/mqueue/mqueue_mod.c
+++ b/src/modules/mqueue/mqueue_mod.c
@@ -277,8 +277,6 @@ static void mqueue_rpc_get_size(rpc_t* rpc, void* ctx)
str mqueue_name;
int mqueue_sz = 0;
- str status = {0, 0};
-
if (rpc->scan(ctx, "S", &mqueue_name) < 1) {
rpc->fault(ctx, 500, "No queue name");
return;