• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SCNetwork warnings [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SCNetwork warnings [SOLVED]


  • Subject: Re: SCNetwork warnings [SOLVED]
  • From: Donald Hall <email@hidden>
  • Date: Fri, 6 Jul 2007 23:00:15 -0600

Title: Re: SCNetwork warnings [SOLVED]
If found an answer to this problem in a post by Randall Meadows in the cocoa-dev mailing list  3 years ago. Moving the statement

        SCNetworkConnectionFlags flags;

inside the @try block made the warning go away.

Don


At 10:53 PM -0600 2007/07/06, Donald Hall wrote:
Can anyone tell me what this means?

AppController.m:28: warning: passing arg 2 of `SCNetworkCheckReachabilityByName' discards qualifiers from pointer target type

Here is the relevant code:

        Boolean success;
       
BOOL okay = NO;
        @try {
          success = SCNetworkCheckReachabilityByName(
"www.apple.com", &flags);
            okay = success && (flags & kSCNetworkFlagsReachable) && !(flags & kSCNetworkFlagsConnectionRequired);
.
.
et cetera

As far as I can tell I am using this function exactly as spelled out in the documentation.

Thanks,

Don

--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Xcode Freeze
  • Next by Date: Re: Xcode Freeze
  • Previous by thread: Re: Xcode Freeze
  • Next by thread: SYSROOT Being appended to library search paths
  • Index(es):
    • Date
    • Thread