Sco*_*zie 7 xcode gcc warnings pragma
我想在Xcode中开发iPhone应用程序时抑制特定警告.警告是:
"warning: class 'XXX' does not implement the 'XYZ' protocol"
Run Code Online (Sandbox Code Playgroud)
我明白我使用的指令:
#pragma GCC diagnostic warning "-Wxxxxxxxxxxxx"
Run Code Online (Sandbox Code Playgroud)
但我不知道xxxxxxxxxxxx应该是什么.有任何想法吗?
(假设:这样做是有正当理由的.我需要这样做,因为否则我不能将处理警告启用为错误选项.)
iph*_*ony -3
尝试这个。
@interface XXX: UIViewController < XYZ>
{
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1394 次 |
| 最近记录: |