STMicroelectronics / STM32CubeU5

Full Firmware Package for the STM32U5 series: HAL+LL drivers, CMSIS, BSP, MW, plus a set of Projects (examples and demos) running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits).
Other
124 stars 67 forks source link

Missing "defined" in header file #16

Closed 42Bastian closed 3 months ago

42Bastian commented 2 years ago

File: stm32u5xx_hal_def.h Compiler: gcc

Issue: Missing "defined" for test of __ARMCC_VERSION Error/Warning from GCC: STM32CubeU5/Drivers/STM32U5xx_HAL_Driver/Inc/stm32u5xx_hal_def.h:208:34: warning: "__ARMCC_VERSION" is not defined, evaluates to 0 [-Wundef]

Line: 175

/**
  * @brief  __RAM_FUNC definition
  */
#if defined ( __CC_ARM   ) || ((__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))

=>

#if defined ( __CC_ARM   ) || ((defined __ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))

Line: 208

/**
  * @brief  __NOINLINE definition
  */
#if defined ( __CC_ARM   ) || ((__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) || defined   (  __GNUC__  )

=>

#if defined ( __CC_ARM   ) || ((defined __ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) || defined   (  __GNUC__  )
TOUNSTM commented 2 years ago

ST Internal Reference: 136515

RJMSTM commented 3 months ago

Fixed in : 0bcb6fc46a94bee6077399a0b9e44d04737e5496