I've seen questions like this, but I don't know where to get the flag name or how to ignore it properly.
An example of where I'm running into an issue is with Reachability.h
on line 76; I'm getting the warning message "Declaration of 'struct sockaddr_in' will not be visible outside of this function"
.
How would I go about getting the name of and ignoring this warning in the file? Would I put something like this:
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wsemantic-issue"
//reachabilityWithAddress- Use to check the reachability of a particular IP address.
+ (Reachability *)reachabilityWithAddress:(const struct sockaddr_in *)hostAddress;
#pragma clang diagnostic pop
I've also been looking at these resources:
But I'm still at a loss.
I'm using LLVM 5.0