【发布时间】:2011-12-07 14:32:56
【问题描述】:
我使用 Apple 示例代码中的 Apple Reachability 类 Reachability
在 Xcode 4.2 和新的 Apple 3.0 编译器中,我在此类中收到警告
+ (Reachability*) reachabilityWithAddress: (const struct sockaddr_in*) hostAddress;
'struct sockaddr_in'的声明在这个函数之外是不可见的*
我不擅长经典的 C %),所以我不明白如何修复这个警告,或者我可以完全忽略它。
谢谢
【问题讨论】: