简体   繁体   中英

Disable warnings being treated as errors(cc1.exe)

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.

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.

在终端中运行此命令说,不要将警告视为错误

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM