Module: kamailio
Branch: master
Commit: 6297a0718f6f04d7b018d1046d78985826271a68
URL:
https://github.com/kamailio/kamailio/commit/6297a0718f6f04d7b018d1046d78985…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: 2016-02-04T04:43:40+02:00
core: avoid compiler warning about variable cl being set but not used
---
Modified: timer_proc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6297a0718f6f04d7b018d1046d78985…
Patch:
https://github.com/kamailio/kamailio/commit/6297a0718f6f04d7b018d1046d78985…
---
diff --git a/timer_proc.c b/timer_proc.c
index b192434..272cc76 100644
--- a/timer_proc.c
+++ b/timer_proc.c
@@ -369,7 +369,6 @@ void sr_wtimer_exec(unsigned int ticks, void *param)
sr_wtimer_node_t *wn;
sr_wtimer_node_t *wp;
uint32_t cs;
- uint32_t cl;
if(_sr_wtimer==NULL) {
LM_ERR("wtimer not intialized\n");
@@ -378,8 +377,9 @@ void sr_wtimer_exec(unsigned int ticks, void *param)
_sr_wtimer->itimer++;
cs = _sr_wtimer->itimer % SR_WTIMER_SIZE;
+ /* uint32_t cl;
cl = _sr_wtimer->itimer / SR_WTIMER_SIZE;
- /* LM_DBG("wtimer - loop: %u - slot: %u\n", cl, cs); */
+ LM_DBG("wtimer - loop: %u - slot: %u\n", cl, cs); */
wp = NULL;
wt=_sr_wtimer->wlist[cs];