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: Scott Thompson <email@hidden>
- Date: Wed, 26 Sep 2007 14:21:10 -0500
On Sep 26, 2007, at 2:04 PM, deepak gopal 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?
Probably that the routine in question returns a const NXArchInfo
pointer. Try:
const NXArchInfo *info = NXGetLocalArchInfo().
_______________________________________________
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