Clang 属性 和 Xcode 项目设置
· 阅读需 4 分钟
忽略 Warning "Unknown attribute 'xxx' ignored"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wattributes"
//code
#pragma clang diagnostic pop
//定义宏里面用到#pragma时需要用_Pragma("")来代替:
#define OCPACK_BEGIN \
_Pragma("clang diagnostic push") \