swift - swift中的旧式功能警告
问题描述
我在我的测试项目中通过 pod 安装了解析库,安装后我收到了 2 个警告建议,都说:“这个旧式函数定义前面没有原型”
我不是目标 C 的专家,有什么想法可以解决这个警告吗?
第一个功能:
__attribute__ ((noinline)) void warnBlockingOperationOnMainThread() {
NSLog(@"Warning: A long-running operation is being executed on the main thread. \n"
" Break on warnBlockingOperationOnMainThread() to debug.");
}
第二个功能:
void PFOfflineStoreReplaceExisingObject() {}
- (NSString *)_generateKeyForClassName:(NSString *)className
objectId:(NSString *)objectId {
return [NSString stringWithFormat:@"%@:%@", className, objectId];
}
谢谢
解决方案
推荐阅读
- node.js - 如何使用 cypress 对客户端下载功能进行 e2e 测试?
- angular-cli - Angular - 如何在构建应用程序时显示进度百分比
- javascript - 通过 onChange 处理程序将数据添加到现有的对象数组
- multithreading - 使用pytorch模型推断离线数据,但耗时太长
- jquery - 使用 Laravel/ajax 获取 http://localhost:8000/= 404(未找到)
- vim - 如何防止 rust.vim 插件自动插入右尖括号?
- php - 使用 salt 和 pem 文件 curl 响应错误的 Openssl 加密
- javascript - Axios 实例回调函数在移动设备上不起作用
- html - 如果表中存在值,则在 freemarker/html 中打印表
- c++ - 如何在模板函数中使用不同的结构作为模板参数?