[sr-dev] git:master:72a4d665: tm: void the return for sr_kemi_route() to prevent analyzer warnings

Daniel-Constantin Mierla miconda at gmail.com
Fri Aug 30 09:09:57 CEST 2019


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-08-30T09:09:33+02:00

tm: void the return for sr_kemi_route() to prevent analyzer warnings

---

Modified: src/modules/tm/t_reply.c

---

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

---

diff --git a/src/modules/tm/t_reply.c b/src/modules/tm/t_reply.c
index 350be35bdd..331bdbdf71 100644
--- a/src/modules/tm/t_reply.c
+++ b/src/modules/tm/t_reply.c
@@ -593,7 +593,7 @@ static int _reply_light( struct cell *trans, char* buf, unsigned int len,
 					} else {
 						bctx = sr_kemi_act_ctx_get();
 						sr_kemi_act_ctx_set(&ctx);
-						sr_kemi_route(keng, &pmsg, EVENT_ROUTE,
+						(void)sr_kemi_route(keng, &pmsg, EVENT_ROUTE,
 							&_tm_event_callback_lres_sent, &evname);
 						sr_kemi_act_ctx_set(bctx);
 					}




More information about the sr-dev mailing list