• 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: Get the CPU architecture of the local m/c
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get the CPU architecture of the local m/c


  • Subject: Re: Get the CPU architecture of the local m/c
  • From: "Clark Cox" <email@hidden>
  • Date: Wed, 26 Sep 2007 12:18:08 -0700

On 9/26/07, deepak gopal <email@hidden> wrote:
> Hi
>
> I am trying to get the CPU architecture of the local m/c using
>
> #import <mach-o/arch.h>
>
>  NXArchInfo *info = NXGetLocalArchInfo();
>
> But I am getting a warning which says "initialization discards qualifiers from pointer target type". What does this mean?

It means that you're ignoring the "qualifiers" (such as const or
volatile) on the returned pointer. Looking at the definition of
NXGetLocalArchInfo, it is the "const" qualifier that you're ignoring.

Try this:

const NXArchInfo *info = NXGetLocalArchInfo();

>
>
>
>
>       Now you can chat without downloading messenger. Go to http://in.messenger.yahoo.com/webmessengerpromo.php
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>


--
Clark S. Cox III
email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Get the CPU architecture of the local m/c (From: deepak gopal <email@hidden>)

  • Prev by Date: Get the CPU architecture of the local m/c
  • Next by Date: Re: Get the CPU architecture of the local m/c
  • Previous by thread: Get the CPU architecture of the local m/c
  • Next by thread: Re: Get the CPU architecture of the local m/c
  • Index(es):
    • Date
    • Thread