From 580efaa4122f6673dd4b171c606ec5454b4c53f1 Mon Sep 17 00:00:00 2001 From: dak664 Date: Wed, 18 May 2011 11:22:25 -0400 Subject: [PATCH] Fix compiler warning for unused variable --- core/net/mac/contikimac.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/net/mac/contikimac.c b/core/net/mac/contikimac.c index af4fce07e..7e4c3deb5 100644 --- a/core/net/mac/contikimac.c +++ b/core/net/mac/contikimac.c @@ -329,7 +329,10 @@ schedule_powercycle_fixed(struct rtimer *t, rtimer_clock_t fixed_time) static void powercycle_turn_radio_off(void) { +#if CONTIKIMAC_CONF_COMPOWER uint8_t was_on = radio_is_on; +#endif /* CONTIKIMAC_CONF_COMPOWER */ + if(we_are_sending == 0) { off(); #if CONTIKIMAC_CONF_COMPOWER