[sr-dev] git:master:932bbdb1: sl: void the return for sr_kemi_route() to prevent analyzer warnings
Daniel-Constantin Mierla
miconda at gmail.com
Fri Aug 30 09:05:34 CEST 2019
Module: kamailio
Branch: master
Commit: 932bbdb19f48808fe6f40849e4798124ef4da127
URL: https://github.com/kamailio/kamailio/commit/932bbdb19f48808fe6f40849e4798124ef4da127
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-08-30T09:04:43+02:00
sl: void the return for sr_kemi_route() to prevent analyzer warnings
---
Modified: src/modules/sl/sl_funcs.c
---
Diff: https://github.com/kamailio/kamailio/commit/932bbdb19f48808fe6f40849e4798124ef4da127.diff
Patch: https://github.com/kamailio/kamailio/commit/932bbdb19f48808fe6f40849e4798124ef4da127.patch
---
diff --git a/src/modules/sl/sl_funcs.c b/src/modules/sl/sl_funcs.c
index 83cf15bb5d..5e36a5542e 100644
--- a/src/modules/sl/sl_funcs.c
+++ b/src/modules/sl/sl_funcs.c
@@ -293,7 +293,7 @@ int sl_reply_helper(struct sip_msg *msg, int code, char *reason, str *tag)
} else if (keng!=NULL) {
bctx = sr_kemi_act_ctx_get();
sr_kemi_act_ctx_set(&ctx);
- sr_kemi_route(keng, msg, EVENT_ROUTE,
+ (void)sr_kemi_route(keng, msg, EVENT_ROUTE,
&_sl_event_callback_lres_sent, &evname);
sr_kemi_act_ctx_set(bctx);
}
@@ -448,7 +448,7 @@ int sl_filter_ACK(struct sip_msg *msg, unsigned int flags, void *bar )
init_run_actions_ctx(&ctx);
bctx = sr_kemi_act_ctx_get();
sr_kemi_act_ctx_set(&ctx);
- sr_kemi_route(keng, msg, EVENT_ROUTE,
+ (void)sr_kemi_route(keng, msg, EVENT_ROUTE,
&_sl_event_callback_fl_ack, &evname);
sr_kemi_act_ctx_set(bctx);
}
More information about the sr-dev
mailing list