Skip to content

Commit

Permalink
Prevent unused argument(s) compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-hillmann committed Aug 12, 2022
1 parent 800ce59 commit bc57743
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_adc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4346,6 +4346,9 @@ __STATIC_INLINE void LL_ADC_ClearFlag_AWD1(ADC_TypeDef *ADCx)
*/
__STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_EOCS(ADC_Common_TypeDef *ADCxy_COMMON)
{
/* Prevent unused argument(s) compilation warning */
(void)ADCxy_COMMON;

return (READ_BIT(ADC1->SR, LL_ADC_FLAG_EOCS) == (LL_ADC_FLAG_EOCS));
}

Expand Down
3 changes: 3 additions & 0 deletions Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_rcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2745,6 +2745,9 @@ __STATIC_INLINE uint32_t LL_RCC_GetI2CClockSource(uint32_t I2Cx)
*/
__STATIC_INLINE uint32_t LL_RCC_GetLPTIMClockSource(uint32_t LPTIMx)
{
/* Prevent unused argument(s) compilation warning */
(void)LPTIMx;

return (uint32_t)(READ_BIT(RCC->DCKCFGR2, RCC_DCKCFGR2_LPTIM1SEL));
}

Expand Down
3 changes: 3 additions & 0 deletions Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,9 @@ HAL_StatusTypeDef HAL_ADCEx_MultiModeStop_DMA(ADC_HandleTypeDef* hadc)
*/
uint32_t HAL_ADCEx_MultiModeGetValue(ADC_HandleTypeDef* hadc)
{
/* Prevent unused argument(s) compilation warning */
UNUSED(hadc);

/* Return the multi mode conversion value */
return ADC->CDR;
}
Expand Down
3 changes: 3 additions & 0 deletions Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dcmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,9 @@ __weak void HAL_DCMI_ErrorCallback(DCMI_HandleTypeDef *hdcmi)
*/
__weak void HAL_DCMI_LineEventCallback(DCMI_HandleTypeDef *hdcmi)
{
/* Prevent unused argument(s) compilation warning */
UNUSED(hdcmi);

/* NOTE : This function Should not be modified, when the callback is needed,
the HAL_DCMI_LineEventCallback could be implemented in the user file
*/
Expand Down
3 changes: 3 additions & 0 deletions Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_exti.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@ uint32_t HAL_EXTI_GetPending(EXTI_HandleTypeDef *hexti, uint32_t Edge)
uint32_t regval;
uint32_t linepos;
uint32_t maskline;
/* Prevent unused argument(s) compilation warning */
UNUSED(Edge);

/* Check parameters */
assert_param(IS_EXTI_LINE(hexti->Line));
Expand Down Expand Up @@ -495,6 +497,7 @@ uint32_t HAL_EXTI_GetPending(EXTI_HandleTypeDef *hexti, uint32_t Edge)
void HAL_EXTI_ClearPending(EXTI_HandleTypeDef *hexti, uint32_t Edge)
{
uint32_t maskline;
(void)Edge;

/* Check parameters */
assert_param(IS_EXTI_LINE(hexti->Line));
Expand Down
3 changes: 3 additions & 0 deletions Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ void HAL_PWR_DisableWakeUpPin(uint32_t WakeUpPinx)
*/
void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry)
{
/* Prevent unused argument(s) compilation warning */
UNUSED(Regulator);

/* Check the parameters */
assert_param(IS_PWR_REGULATOR(Regulator));
assert_param(IS_PWR_SLEEP_ENTRY(SLEEPEntry));
Expand Down
3 changes: 3 additions & 0 deletions Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@
*/
ErrorStatus LL_ADC_CommonDeInit(ADC_Common_TypeDef *ADCxy_COMMON)
{
/* Prevent unused argument(s) compilation warning */
(void)ADCxy_COMMON;

/* Check the parameters */
assert_param(IS_ADC_COMMON_INSTANCE(ADCxy_COMMON));

Expand Down
3 changes: 3 additions & 0 deletions Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_dac.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@
*/
ErrorStatus LL_DAC_DeInit(DAC_TypeDef *DACx)
{
/* Prevent unused argument(s) compilation warning */
(void)DACx;

/* Check the parameters */
assert_param(IS_DAC_ALL_INSTANCE(DACx));

Expand Down
5 changes: 5 additions & 0 deletions Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_rcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,9 @@ uint32_t LL_RCC_GetDSIClockFreq(uint32_t DSIxSource)
*/
uint32_t LL_RCC_GetLTDCClockFreq(uint32_t LTDCxSource)
{
/* Prevent unused argument(s) compilation warning */
(void)LTDCxSource;

uint32_t ltdc_frequency = LL_RCC_PERIPH_FREQUENCY_NO;

/* Check parameter */
Expand All @@ -1192,6 +1195,8 @@ uint32_t LL_RCC_GetLTDCClockFreq(uint32_t LTDCxSource)
*/
uint32_t LL_RCC_GetSPDIFRXClockFreq(uint32_t SPDIFRXxSource)
{
(void)SPDIFRXxSource;

uint32_t spdifrx_frequency = LL_RCC_PERIPH_FREQUENCY_NO;

/* Check parameter */
Expand Down

0 comments on commit bc57743

Please sign in to comment.