关闭编译警告

方法、变量未使用

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused"
...
#pragma clang diagnostic pop

方法弃用告警

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
...
#pragma clang diagnostic pop

指针类型不兼容

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wincompatible"
...
#pragma clang diagnostic pop