忽略与属性相关的clang警告 [英] Ignore clang warnings related to property

查看:289
本文介绍了忽略与属性相关的clang警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想忽略这些警告,当我使用
valid architechtures:arm64 armv7 armv7s 时出现这些警告

i want to ignore these warnings these warning appeared when i used valid architechtures : arm64 armv7 armv7s

这些类型的警告出现在许多标题中。

these type of warnings appearing in many headers .

我想忽略这些警告,就像clang对已过时的警告一样。

i want to ignore these warnings just like clang does for deprecated warnings.

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"

我想要这样或任何编译器标志忽略这些警告

i want something like this or any compiler flags to ignore these warnings

推荐答案

如果你转到日志导航器),您可以展开文字记录(请参阅​​查看任务日志文字)。一旦你找到一个显示构建警告的,你可以看到每个的精确 -W 代码,然后通过你的# pragma

If you go to the log navigator (the last tab on the left panel in Xcode), you can expand the "transcripts" (see Viewing Task Log Transcripts). Once you find the one that shows the build warnings, you can see what the precise -W code for each is, and then suppress it via your #pragma.

这篇关于忽略与属性相关的clang警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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