Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Unused Variables warnings with global consts.h header file (From: "Jan Barnholt" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.