[HAL][FLASH] Add UNUSED() macro to avoid the generation of a warning related to the unused argument 'TypeProgram'
diff --git a/Src/stm32l0xx_hal_flash.c b/Src/stm32l0xx_hal_flash.c
index 95db0ef..6c4b226 100644
--- a/Src/stm32l0xx_hal_flash.c
+++ b/Src/stm32l0xx_hal_flash.c
@@ -236,6 +236,9 @@
assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram));
assert_param(IS_FLASH_PROGRAM_ADDRESS(Address));
+ /* Prevent unused argument(s) compilation warning */
+ UNUSED(TypeProgram);
+
/* Wait for last operation to be completed */
status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE);
@@ -278,6 +281,9 @@
assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram));
assert_param(IS_FLASH_PROGRAM_ADDRESS(Address));
+ /* Prevent unused argument(s) compilation warning */
+ UNUSED(TypeProgram);
+
/* Enable End of FLASH Operation and Error source interrupts */
__HAL_FLASH_ENABLE_IT(FLASH_IT_EOP | FLASH_IT_ERR);