• 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 parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: unused parameters (From: Sailor Quasar <email@hidden>)

  • Prev by Date: Re: unused parameters
  • Next by Date: Re: unused parameters
  • Previous by thread: Re: unused parameters
  • Next by thread: Re: unused parameters
  • Index(es):
    • Date
    • Thread