Re: Get the CPU architecture of the local m/c
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