2023-04-28 02:06 PM
Hello
I try to run STM32 project in touchGFX Designer 4.21.3 and have 1 unused variable and compilation failed with error:
uint16_t myVar = 0;
^~~~~~~~~~~
cc1plus.exe: all warnings being treated as errors
how to turn off this annoying useless termination of compilation in case of such harmless warning
and 2nd question - where built-in touchGFX code editor gone ?
2023-04-28 10:31 PM
In your config/gcc/app.mk try specifying the following -Wno-error in your user_cflags
# Optional additional compiler flags
user_cflags := -DUSE_BPP=16 -Wno-error
https://community.st.com/s/question/0D50X0000AcnZ20SQE/compiler-how-to-remove-warning-as-error
Maybe some kind of FAQ would be good for these common issues.