• 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: Unused Variables warnings with global consts.h header file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unused Variables warnings with global consts.h header file


  • Subject: Re: Unused Variables warnings with global consts.h header file
  • From: Jonathon Mah <email@hidden>
  • Date: Tue, 29 Jan 2008 01:35:18 +1030

Hi Jan,

On 2008-01-27, at 23:21, Jan Barnholt wrote:

I get these strange warnings from Xcode 2.4.1/GCC 4.0 when compiling with the Unused Variables switch turned on.


You can set __attribute__ ((unused)) to mute the warning, if you like.

<http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Type-Attributes.html>

unused
When attached to a type (including a union or a struct), this attribute means that variables of that type are meant to appear possibly unused. GCC will not produce a warning for any variables of that type, even if the variable appears to do nothing.



Jonathon Mah email@hidden


_______________________________________________ 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: 
 >Unused Variables warnings with global consts.h header file (From: "Jan Barnholt" <email@hidden>)

  • Prev by Date: dylibs in Resources? (app looks in /opt/local/lib)
  • Next by Date: libtool problems linking libraries on Xcode 2.5, Leopard
  • Previous by thread: Re: Unused Variables warnings with global consts.h header file
  • Next by thread: Re: Unused Variables warnings with global consts.h header file
  • Index(es):
    • Date
    • Thread