mirror of https://github.com/ARMmbed/mbed-os.git
Prevent warnings during compilations for MAX32630FTHR
In Mbed OS 5.12.0 mbed_toolchain.py has been introduced, that automatically defines the macro TARGET_NAME (on line 241). This leads to a high number of generating the following warning: 'TARGET_NAME' macro redefined while compiling code for MAX32630FTHR on Mbed OS 5.12 and above. This patch fixes it, while it keeps the definition in place for lower versions that lack mbed_toolchain.pypull/13743/head
parent
a9dfa0ceba
commit
48c71b3649
|
@ -46,7 +46,9 @@
|
||||||
// Create a string definition for the TARGET
|
// Create a string definition for the TARGET
|
||||||
#define STRING_ARG(arg) #arg
|
#define STRING_ARG(arg) #arg
|
||||||
#define STRING_NAME(name) STRING_ARG(name)
|
#define STRING_NAME(name) STRING_ARG(name)
|
||||||
|
#if MBED_VERSION && MBED_VERSION < 51200
|
||||||
#define TARGET_NAME STRING_NAME(TARGET)
|
#define TARGET_NAME STRING_NAME(TARGET)
|
||||||
|
#endif
|
||||||
|
|
||||||
// Define which revisions of the IP we are using
|
// Define which revisions of the IP we are using
|
||||||
#ifndef TARGET_REV
|
#ifndef TARGET_REV
|
||||||
|
|
Loading…
Reference in New Issue