• 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: warning: declaration does not declare anything
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >warning: declaration does not declare anything (From: Erg Consultant <email@hidden>)

  • Prev by Date: Re: Preprocess Info.plist for Single-File Tool
  • Next by Date: Getting 10.4 OSAtomic.h when targeting 10.5
  • Previous by thread: warning: declaration does not declare anything
  • Next by thread: Re: warning: declaration does not declare anything
  • Index(es):
    • Date
    • Thread