Re: unused parameters
Re: unused parameters
- Subject: Re: unused parameters
- From: "Alastair J.Houghton" <email@hidden>
- Date: Sat, 27 Sep 2003 22:58:13 +0100
On Saturday, September 27, 2003, at 10:05 pm, Sailor Quasar wrote:
On Saturday, September 27, 2003, at 04:42 PM, David Remahl wrote:
GCC supports the same pragma:
#pragma unused( var )
Absolutely true. However this pragma, and in fact #pragmas in general
are deprecated in gcc and exist only for compatibility.
Don't read too much into what the GCC docs say on the subject. Even
within the GCC developer community, the comments on #pragma are widely
regarded as a little extreme.
There are some things for which #pragma works much better than the GCC
attribute mechanism (for example, compiler settings that could be
expected to apply to a large block of code), and also C99 mandates some
standard #pragmas, so #pragma isn't really as deprecated as the manual
would seem to suggest.
Kind regards,
Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.