Warm tip: This article is reproduced from serverfault.com, please click

Disable warnings being treated as errors(cc1.exe)

发布于 2012-04-20 14:42:35

I am developing a brew app. When compiling the app to get 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 says disabling -werror will help but I don't know how to do that. The compiler is CodeSourcery ARM.

Questioner
Sarim Sidd
Viewed
0
Daniel Roethlisberger 2012-04-20 22:51:20

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.