classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Usage of "attribute"


From: Mark Wielaard
Subject: Re: Usage of "attribute"
Date: Sun, 31 Oct 2004 20:29:15 +0100

Hi,

On Fri, 2004-10-29 at 17:52, Tom Tromey wrote:
> gtkpeer.h does this:
> 
> #ifndef __GNUC__
> #define __attribute__(x) /* nothing */
> #endif
> 
> Just go ahead and add this to whatever other header needs it.

jcl.h is probably included everywhere.

> Torsten> Another idea would be some construct of the form
> Torsten> if ((parameter)==(parameter));
> 
> IMO it is better to use attribute.  These little tricks have a way of
> breaking as compilers change.

Agreed. And I think it is more obscure than __attribute((__unused__)).

Cheers,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]