ios关闭部分警告

1.方法弃用告警

#pragma clang diagnostic push

#pragma clang diagnostic ignored "-Wdeprecated-declarations"

#pragma clang diagnostic pop

2.指针类型不兼容

#pragma clang diagnostic push

#pragma clang diagnostic ignored "-Wincompatible-pointer-types"

#pragma clang diagnostic pop

3.循环引用

#pragma clang diagnostic push

#pragma clang diagnostic ignored "-Warc-retain-cycles"

#pragma clang diagnostic pop

4.未使用变量

#pragma clang diagnostic push

#pragma clang diagnostic ignored "-Wunused-variable"

#pragma clang diagnostic pop

你可能感兴趣的:(ios关闭部分警告)