[HAL][CORTEX] Add UNUSED() macro to avoid the generation of a warning related to the unused argument 'SubPriority'
diff --git a/Src/stm32l0xx_hal_cortex.c b/Src/stm32l0xx_hal_cortex.c
index 5aab39f..827e572 100644
--- a/Src/stm32l0xx_hal_cortex.c
+++ b/Src/stm32l0xx_hal_cortex.c
@@ -133,6 +133,10 @@
/* Check the parameters */
assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
NVIC_SetPriority(IRQn,PreemptPriority);
+
+ /* Prevent unused argument(s) compilation warning */
+ UNUSED(SubPriority);
+
}
/**