When building in automation studio, I’m wondering if it’s possible to enable all build warnings as errors? There seem to be some warnings that our development team would like to fail the build if they exist (example: unhandled value in a switch/case block). We are building our project with ANSI C with GCC 4.1.2. I’ve tried passing in the -Werror flag in the build properties which doesn’t make all warnings as errors. Is there another way to turn these warnings into errors?
Hello and welcome !
To my knowledge this is not possible.
The option -W is to surpress warnings and not to make them an error
best regards
Oliver
Could be related to gcc 4.1.2 - which is rather old.
I tried with Automation Studio 6 …
I used GCC 11.3.0 with “Additional build options” -Werror -Wextra -pedantic … but I’m not sure if -Wextra and -pedantic is supported in 4.1.2.
CHH