禁用警告被视为错误(cc1.exe) [英] Disable warnings being treated as errors(cc1.exe)

查看:284
本文介绍了禁用警告被视为错误(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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆