Description
There are a number of board files that set a macro with '-' in the macro name. It causes this warning:
:0:14: warning: ISO C++11 requires whitespace after the macro name
If you actually try to use the macro in a program, for instance:
#ifdef ARDUINO_ESP32-EVB
// Stuff here
#endif
It causes a further warning:
src/main.cpp:5:21: warning: extra tokens at end of #ifdef directive
The board files that are affected are:
esp32-evb.json: "extra_flags": "-DARDUINO_ESP32-EVB",
esp32-gateway.json: "extra_flags": "-DARDUINO_ESP32-GATEWAY",
esp32vn-iot-uno.json: "extra_flags": "-DARDUINO_esp32vn-iot-uno",
m5stack-core-esp32.json: "extra_flags": "-DARDUINO_M5Stack-Core-ESP32",
nodemcu-32s.json: "extra_flags": "-DARDUINO_NodeMCU-32S",
I will create a pull request changing the '-' (dash) to '_' (underscore). If that is not the solution you want, please let me know and I will change it.