Is it possible to suppress Xcode 4 static analyzer warnings?

前端 未结 4 737
广开言路
广开言路 2020-12-04 15:57

The Xcode 4 static analyzer reports in my code some false positives. Is there any way to suppress them?

4条回答
  •  爱一瞬间的悲伤
    2020-12-04 16:11

    See my answer here. You can add a compile flag to the files and static analyzer will ignore them. This is probably better for 3rd party code you aren't concerned about, and not for first party code you are writing.

提交回复
热议问题