mirror of
https://github.com/STMicroelectronics/STM32CubeF4.git
synced 2025-04-24 13:48:53 +08:00
defines: prevent redefinition of UNUSED
To prevent compiler warnings/errors we have to wrap the definition of UNUSED with an ifndef. So there are no problems if this is already defined in the project Signed-off-by: Peter Tönz <peter.tonz@husqvarnagroup.com>
This commit is contained in:
parent
5d432f9cf3
commit
e92669fc50
@ -54,7 +54,9 @@ typedef enum
|
||||
|
||||
/* Exported macro ------------------------------------------------------------*/
|
||||
|
||||
#define UNUSED(X) (void)X /* To avoid gcc/g++ warnings */
|
||||
#ifndef UNUSED
|
||||
#define UNUSED(X) (void)X /* To avoid gcc/g++ warnings */
|
||||
#endif
|
||||
|
||||
#define HAL_MAX_DELAY 0xFFFFFFFFU
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user