I am using Firebase Analytics on my pod file of an iOS project. I get the following errors when I run the app.
A function declaration without a prototype is deprecated in all versions of C
it's shown on the following code (on the Firebase library):
GDTCORNetworkType GDTCORNetworkTypeMessage() {. <----error here
#if !TARGET_OS_WATCH
SCNetworkReachabilityFlags reachabilityFlags = [GDTCORReachability currentFlags];
if ((reachabilityFlags & kSCNetworkReachabilityFlagsReachable) ==
kSCNetworkReachabilityFlagsReachable) {
if (GDTCORReachabilityFlagsContainWWAN(reachabilityFlags)) {
return GDTCORNetworkTypeMobile;
} else {
return GDTCORNetworkTypeWIFI;
}
}
#endif
return GDTCORNetworkTypeUNKNOWN;
}
I tried doing a pod update
but I'm still unable to fix the problem.
For reference, I have this particular issue besides that I'm on Xcode and not on RN.