[HAL][CORTEX] Add UNUSED() macro to avoid the generation of a warning related to the unused argument 'SubPriority'
diff --git a/Src/stm32f0xx_hal_cortex.c b/Src/stm32f0xx_hal_cortex.c
index db507c1..b0ff76a 100644
--- a/Src/stm32f0xx_hal_cortex.c
+++ b/Src/stm32f0xx_hal_cortex.c
@@ -133,10 +133,13 @@
* @retval None
*/
void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
-{
+{
/* Check the parameters */
assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
NVIC_SetPriority(IRQn,PreemptPriority);
+
+ /* Prevent unused argument(s) compilation warning */
+ UNUSED(SubPriority);
}
/**