From 88d05578a8a671f4cd78a2139439fa2905a7824f Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Thu, 8 Dec 2022 22:00:44 +0100 Subject: [PATCH] platformio.ini: do not redefine "register" as it break ASM code and affects methods called "register" as well unfortunately this breaks build for -C3 and -S3 /.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32c3/include/riscv/include/riscv/semihosting.h:75:19: warning: ignoring asm-specifier for non-static local variable 'a0' register long a0 asm ("a0") = id; ^~ .platformio/packages/framework-arduinoespressif32/tools/sdk/esp32c3/include/riscv/include/riscv/semihosting.h:76:19: warning: ignoring asm-specifier for non-static local variable 'a1' register long a1 asm ("a1") = (long) data; --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 552bdfd3..e3c63b3b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -111,7 +111,7 @@ build_flags = -D DECODE_SONY=true -D DECODE_SAMSUNG=true -D DECODE_LG=true - -Dregister= # remove warnings in C++17 due to use of deprecated register keyword by the FastLED library + ; -Dregister= # remove warnings in C++17 due to use of deprecated register keyword by the FastLED library -DWLED_USE_MY_CONFIG ; -D USERMOD_SENSORSTOMQTT #For ADS1115 sensor uncomment following