Skip to content

Commit

Permalink
core: avoid compiler warning about variable cl being set but not used
Browse files Browse the repository at this point in the history
  • Loading branch information
juha-h committed Feb 4, 2016
1 parent 4108353 commit 6297a07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions timer_proc.c
Expand Up @@ -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");
Expand All @@ -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];
Expand Down

0 comments on commit 6297a07

Please sign in to comment.