禁用警告被视为错误(cc1.exe) [英] Disable warnings being treated as errors(cc1.exe)
问题描述
我正在开发一个brew应用程序。编译应用程序以获取MOD文件时,我不断收到此错误
cc1.exe:警告被视为错误
我想禁用此警告。我已经GOOGLE了,许多人说禁用 -werror
会有所帮助,但我不知道该怎么做。编译器是CodeSourcery ARM。
您需要删除 -Werror
从 CFLAGS
, CPPFLAGS
等;这些通常是在Makefile或build脚本中设置的。
但是,我强烈建议修复实际的警告,这样会产生更稳定和无错误的代码。
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.
这篇关于禁用警告被视为错误(cc1.exe)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!