From 58e0900d5e6bd6d2884af7b3a704a3e9670d3dcf Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Sat, 2 Aug 2014 00:46:01 +0100 Subject: [PATCH] CC3D - fixing two unused variable compiler warnings. --- src/main/drivers/adc_stm32f10x.c | 4 ++++ src/main/drivers/sound_beeper.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/drivers/adc_stm32f10x.c b/src/main/drivers/adc_stm32f10x.c index 77cb80816c..e5a451cc37 100644 --- a/src/main/drivers/adc_stm32f10x.c +++ b/src/main/drivers/adc_stm32f10x.c @@ -20,6 +20,9 @@ #include #include "platform.h" + +#include "build_config.h" + #include "system.h" #include "sensors/sensors.h" // FIXME dependency into the main code @@ -41,6 +44,7 @@ extern volatile uint16_t adcValues[ADC_CHANNEL_COUNT]; #ifdef CC3D void adcInit(drv_adc_config_t *init) { + UNUSED(init); } #else void adcInit(drv_adc_config_t *init) diff --git a/src/main/drivers/sound_beeper.c b/src/main/drivers/sound_beeper.c index afe0aaf6ad..190db9fcdd 100644 --- a/src/main/drivers/sound_beeper.c +++ b/src/main/drivers/sound_beeper.c @@ -21,6 +21,8 @@ #include "platform.h" +#include "build_config.h" + #include "system.h" #include "gpio.h" @@ -52,7 +54,9 @@ static void beepInverted(bool onoff) void systemBeep(bool onoff) { -#ifdef BEEPER +#ifndef BEEPER + UNUSED(onoff); +#else systemBeepPtr(onoff); #endif }