[HAL][ADC] Add UNUSED() macro to avoid the generation of a warning related to the unused argument 'SingleDiff'
diff --git a/Src/stm32l0xx_hal_adc_ex.c b/Src/stm32l0xx_hal_adc_ex.c
index 56a3fb7..39fcd1b 100644
--- a/Src/stm32l0xx_hal_adc_ex.c
+++ b/Src/stm32l0xx_hal_adc_ex.c
@@ -110,6 +110,9 @@
/* Check the parameters */
assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
+ /* Prevent unused argument(s) compilation warning */
+ UNUSED(SingleDiff);
+
/* Process locked */
__HAL_LOCK(hadc);
@@ -192,6 +195,9 @@
assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
assert_param(IS_ADC_SINGLE_DIFFERENTIAL(SingleDiff));
+ /* Prevent unused argument(s) compilation warning */
+ UNUSED(SingleDiff);
+
/* Return the ADC calibration value */
return ((hadc->Instance->CALFACT) & 0x0000007FU);
}
@@ -214,6 +220,9 @@
assert_param(IS_ADC_SINGLE_DIFFERENTIAL(SingleDiff));
assert_param(IS_ADC_CALFACT(CalibrationFactor));
+ /* Prevent unused argument(s) compilation warning */
+ UNUSED(SingleDiff);
+
/* Process locked */
__HAL_LOCK(hadc);