Re: Unused Variables warnings with global consts.h header file
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