Browse code

core: avoid compiler warning about variable cl being set but not used

Juha Heinanen authored on 04/02/2016 02:43:40
Showing 1 changed files
... ...
@@ -369,7 +369,6 @@ void sr_wtimer_exec(unsigned int ticks, void *param)
369 369
 	sr_wtimer_node_t *wn;
370 370
 	sr_wtimer_node_t *wp;
371 371
 	uint32_t cs;
372
-	uint32_t cl;
373 372
 
374 373
 	if(_sr_wtimer==NULL) {
375 374
 		LM_ERR("wtimer not intialized\n");
... ...
@@ -378,8 +377,9 @@ void sr_wtimer_exec(unsigned int ticks, void *param)
378 377
 
379 378
 	_sr_wtimer->itimer++;
380 379
 	cs = _sr_wtimer->itimer % SR_WTIMER_SIZE;
380
+	/* uint32_t cl;
381 381
 	cl = _sr_wtimer->itimer / SR_WTIMER_SIZE;
382
-	/* LM_DBG("wtimer - loop: %u - slot: %u\n", cl, cs); */
382
+	LM_DBG("wtimer - loop: %u - slot: %u\n", cl, cs); */
383 383
 
384 384
 	wp = NULL;
385 385
 	wt=_sr_wtimer->wlist[cs];