美文网首页
iOS编译警告-消除方法参数检查相关的警告

iOS编译警告-消除方法参数检查相关的警告

作者: Billlin | 来源:发表于2020-01-22 15:03 被阅读0次

Build Settings 中将 Strict Prototypes 的warning开关关掉,就不会报方法参数检查中的一些警告。

Strict Prototypes:

设置成YES:会检查,有问题会报警告。
设置成NO:不会检查。
设置成YES(Error):会检查,有问题会报错。

参数检查的一些警告:


  • This function declaration is not a prototype,Insert 'void'
    函数定义没有参数

相关文章

网友评论

      本文标题:iOS编译警告-消除方法参数检查相关的警告

      本文链接:https://www.haomeiwen.com/subject/dwrjzctx.html