Disable warnings being treated as errors (cc1.exe)

80.4k views Asked by At

I am developing a BREW application. When compiling the application to get a MOD file, I am continuously getting this error:

cc1.exe: warnings being treated as errors

I want to disable this warning. I have googled it, and many say disabling -werror will help, but how can I do that?

The compiler is CodeSourcery ARM.

2

There are 2 answers

2
Daniel Roethlisberger On BEST ANSWER

You need to remove -Werror from CFLAGS, CPPFLAGS etc.; these are usually set in Makefile's or build scripts.

However, I'd strongly advice to fix the actual warnings instead, which will produce more stable and error-free code.

0
Be Champzz On

Run this Command in Terminal to say, not to consider warning as error

make CFLAGS="-Wno-error=format-truncation"