Skip to content

Commit 88d0557

Browse files
authored
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;
1 parent b24c8b3 commit 88d0557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ build_flags =
111111
-D DECODE_SONY=true
112112
-D DECODE_SAMSUNG=true
113113
-D DECODE_LG=true
114-
-Dregister= # remove warnings in C++17 due to use of deprecated register keyword by the FastLED library
114+
; -Dregister= # remove warnings in C++17 due to use of deprecated register keyword by the FastLED library
115115
-DWLED_USE_MY_CONFIG
116116
; -D USERMOD_SENSORSTOMQTT
117117
#For ADS1115 sensor uncomment following

0 commit comments

Comments
 (0)