diff --git a/flight/pios/stm32f30x/libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_adc.c b/flight/pios/stm32f30x/libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_adc.c index 44da04dbc..af90b23c9 100755 --- a/flight/pios/stm32f30x/libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_adc.c +++ b/flight/pios/stm32f30x/libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_adc.c @@ -945,7 +945,7 @@ void ADC_AnalogWatchdog3SingleChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Chann * This parameter can be: ENABLE or DISABLE. * @retval None */ -void ADC_TempSensorCmd(ADC_TypeDef* ADCx, FunctionalState NewState) +void ADC_TempSensorCmd(__attribute__((unused)) ADC_TypeDef* ADCx, FunctionalState NewState) { /* Check the parameters */ assert_param(IS_FUNCTIONAL_STATE(NewState)); @@ -1010,7 +1010,7 @@ void ADC_VrefintCmd(ADC_TypeDef* ADCx, FunctionalState NewState) * This parameter can be: ENABLE or DISABLE. * @retval None */ -void ADC_VbatCmd(ADC_TypeDef* ADCx, FunctionalState NewState) +void ADC_VbatCmd(__attribute__((unused)) ADC_TypeDef* ADCx, FunctionalState NewState) { /* Check the parameters */ assert_param(IS_FUNCTIONAL_STATE(NewState)); diff --git a/flight/pios/stm32f30x/libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_hrtim.c b/flight/pios/stm32f30x/libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_hrtim.c index 4e2cd3e7d..40e3bd7a6 100755 --- a/flight/pios/stm32f30x/libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_hrtim.c +++ b/flight/pios/stm32f30x/libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_hrtim.c @@ -248,7 +248,7 @@ void HRTIM_SimpleBase_Init(HRTIM_TypeDef* HRTIMx, uint32_t TimerIdx, HRTIM_BaseI * @param HRTIMx: pointer to HRTIMx peripheral * @retval None */ -void HRTIM_DeInit(HRTIM_TypeDef* HRTIMx) +void HRTIM_DeInit(__attribute__((unused)) HRTIM_TypeDef* HRTIMx) { /* Check the parameters */ RCC_APB2PeriphResetCmd(RCC_APB2Periph_HRTIM1, ENABLE); @@ -631,7 +631,7 @@ void HRTIM_SimplePWMStop(HRTIM_TypeDef * HRTIMx, */ void HRTIM_SimpleCaptureStart(HRTIM_TypeDef * HRTIMx, uint32_t TimerIdx, - uint32_t CaptureChannel) + __attribute__((unused)) uint32_t CaptureChannel) { /* Enable the timer counter */ __HRTIM_ENABLE(HRTIMx, TimerIdxToTimerId[TimerIdx]); @@ -3208,7 +3208,7 @@ uint32_t HRTIM_WaveformGetOutputLevel(HRTIM_TypeDef * HRTIMx, * @retval Output state */ uint32_t HRTIM_WaveformGetOutputState(HRTIM_TypeDef * HRTIMx, - uint32_t TimerIdx, + __attribute__((unused)) uint32_t TimerIdx, uint32_t Output) { uint32_t output_bit = 0; diff --git a/flight/pios/stm32f30x/libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_syscfg.c b/flight/pios/stm32f30x/libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_syscfg.c index e644d16e3..678771978 100755 --- a/flight/pios/stm32f30x/libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_syscfg.c +++ b/flight/pios/stm32f30x/libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_syscfg.c @@ -513,7 +513,7 @@ void SYSCFG_SRAMWRPEnable(uint32_t SYSCFG_SRAMWRP) * @arg SYSCFG_FLAG_PE: SRAM parity error flag. * @retval The new state of SYSCFG_Flag (SET or RESET). */ -FlagStatus SYSCFG_GetFlagStatus(uint32_t SYSCFG_Flag) +FlagStatus SYSCFG_GetFlagStatus(__attribute__((unused)) uint32_t SYSCFG_Flag) { FlagStatus bitstatus = RESET;