将warning设为错误

在程序编写过程中,我们有时会因为现实情况将现在无法实现的部分功能设为warning

#prama warning ------------------

为了方便查找warning,或查看某部分的警告,可设警告为错误

 

具体操作为:

选中“项目”---》Building Settings ----》搜索warning

并将Treats Warnings as Errors设为YES
如下图所示

posted on 2014-12-17 15:39  安琪  阅读(132)  评论(0编辑  收藏  举报

导航