nuttx
nuttx copied to clipboard
[BUG] Compile warning due to __CONCAT redefinition
Description / Steps to reproduce the issue
Perhaps due to me upgrading my arm gcc cross compiler recently, I'm seeing a compiler warning because of the definition of __CONCAT - in my case this is in _sama5d2x_memorymap.h but it occurs in 12 other files too
The warning is:
arm-gnu-toolchain-13.2.1-arm-none-eabi/arm-none-eabi/include/sys/cdefs.h:166: note: this is the location of the previous definition
166 | #define __CONCAT(x,y) __CONCAT1(x,y)
I can fix this as follows but have no idea if a better, more global fix is needed and, if so, where/how?
#ifndef __CONCAT
# define __CONCAT(a,b) a ## b
#endif
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
Ubuntu 22.04.5 LTS
NuttX Version
Master
Issue Architecture
[Arch: arm]
Issue Area
[Area: Board support]
Verification
- [X] I have verified before submitting the report.