Xcode 5.1未使用的常量被视为错误 [英] Xcode 5.1 unused consts treated as error

查看:174
本文介绍了Xcode 5.1未使用的常量被视为错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从今天早上升级到Xcode 5.1之后,我在我的项目中包含的C ++库由于未使用const而无法构建。

Since upgrading to Xcode 5.1 this morning, a C++ library I have included in my project is failing to build due to unused const.

我将Warnings当作错误:NO& Pedantic警告:NO

I have Treat Warnings as Errors: NO & Pedantic Warnings: NO

任何想法?

Edit after request for line!:

const int NPT_SSDP_MAX_LINE_SIZE  = 2048;

完整警告是:
Shell脚本调用错误
未使用的变量'NPT_SSDP_MAX_LINE_SIZE'

full warning is: Shell script Invocation Error Unused variable 'NPT_SSDP_MAX_LINE_SIZE'

推荐答案

您对项目中的验证项目设置有任何警告吗?类似错误在更新到推荐设置后消失,然后再次编译。

Do you have any warning about "Validate Project Settings" in your project?. Similar error went away after update to recommended settings and compile again.

这篇关于Xcode 5.1未使用的常量被视为错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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