xcode/clang:clang:警告:编译期间未使用的参数:'-fcheck-new'

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13238511/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 04:37:59  来源:igfitidea点击:

xcode/clang: clang: warning: argument unused during compilation: '-fcheck-new'

xcodegccwarningsclang

提问by kakyo

As title:

如题:

I'm constantly getting this warning that flooded out my screen in Xcode4 for the -fcheck-new options that I use.

对于我使用的 -fcheck-new 选项,我不断收到此警告,该警告在 Xcode4 中淹没了我的屏幕。

clang: warning: argument unused during compilation: '-fcheck-new'

Is it that clang does not support this gcc compiler option??? How can I get rid of the warnings?

是不是clang不支持这个gcc编译器选项???我怎样才能摆脱警告?

Thanks!

谢谢!

回答by Jason Oster

This warning can be silenced by adding the flag -Qunused-arguments

可以通过添加标志来消除此警告 -Qunused-arguments

It's a warning because clang does not support the -fcheck-newargument.

这是一个警告,因为 clang 不支持该-fcheck-new论点。