Re: warning: declaration does not declare anything
Re: warning: declaration does not declare anything
- Subject: Re: warning: declaration does not declare anything
- From: Philip Aker <email@hidden>
- Date: Sat, 16 May 2009 12:33:17 -0700
On 2009-05-16, at 11:56:26, Erg Consultant wrote:
I have a Windows-like structure in my C++ code which I compile with
XCode 3.1.2:
struct __tagBRECORD
{
PVOID pvRecord;
#ifndef TARGET_OS_MAC
IRecordInfo *pRecInfo;
#endif
} __VARIANT_NAME_4;
This always returns a warning on the last line:
warning: declaration does not declare anything
What does this warning mean and how can I get rid of it?
This should be described in "/usr/include/TargetConditionals.h".
The old version of this header was in Universal Interfaces and I
believe the use is for detecting Mac targets prior to Mac OS X.
You might be able to use:
#ifdef __APPLE_CC__
IRecordInfo *pRecInfo;
#endif
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
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