cancel
Showing results for 
Search instead for 
Did you mean: 

Can't run project in tGFX emulator with warning?!!!

rBlr
Associate III

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 ?

1 REPLY 1
JTP1
Lead

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.