Re: __attribute__ in Objective-C
Re: __attribute__ in Objective-C
- Subject: Re: __attribute__ in Objective-C
- From: Alexander von Below <email@hidden>
- Date: Sat, 22 Oct 2005 00:16:48 +0200
What's the nature of "not working well with C++ code?"
When listing several parameters as "unused" (i.e. #pragma unused
(param_a, param_b), the compiler would still warn on all but the
first parameter listed. This problem did not occur when using the
unused __attribute__
Cheers
Alex
Am 21.10.2005 um 23:41 schrieb Gregory Weston:
Alexander v. Below wrote:
While Apple gcc provides the old CodeWarrior #pragma unused, I found
that it does not work well with C++ code. Consequently, I wanted to
"migrate" to __attribute__ unused in all subseqent code.
Also, the gcc documentation(2) makes the claim that " It was
basically a mistake to use #pragma for anything."
Any pointers are appreciated.
I can't help you with the C++ issue, unfortunately, but I would
point out that the voiced objection to using #pragma is:
a) Intentionally presented in the past tense.
b) Not particularly supported by the justifications offered.
What's the nature of "not working well with C++ code?"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden