[sr-dev] git:master:eb218806: tm: remove unused 'ret' variable in w_t_reply, compiler warning

Henning Westerholt hw at kamailio.org
Sun May 6 18:47:45 CEST 2018


Module: kamailio
Branch: master
Commit: eb218806e5a1143eca2ce51741859c7ac7505f4b
URL: https://github.com/kamailio/kamailio/commit/eb218806e5a1143eca2ce51741859c7ac7505f4b

Author: Henning Westerholt <hw at kamailio.org>
Committer: Henning Westerholt <hw at kamailio.org>
Date: 2018-05-06T18:47:14+02:00

tm: remove unused 'ret' variable in w_t_reply, compiler warning

---

Modified: src/modules/tm/tm.c

---

Diff:  https://github.com/kamailio/kamailio/commit/eb218806e5a1143eca2ce51741859c7ac7505f4b.diff
Patch: https://github.com/kamailio/kamailio/commit/eb218806e5a1143eca2ce51741859c7ac7505f4b.patch

---

diff --git a/src/modules/tm/tm.c b/src/modules/tm/tm.c
index f264a0b781..426898f314 100644
--- a/src/modules/tm/tm.c
+++ b/src/modules/tm/tm.c
@@ -1373,7 +1373,7 @@ static int ki_t_reply(sip_msg_t* msg, int code, str* reason)
 
 static int w_t_reply(struct sip_msg* msg, char* p1, char* p2)
 {
-	int code, ret = -1;
+	int code;
 	str reason;
 
 	if (msg->REQ_METHOD==METHOD_ACK) {




More information about the sr-dev mailing list