This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: minor corrections to gthr-dce.h


> >>>>> "John" == John David Anglin <dave@hiauly1.hia.nrc.ca> writes:
> 
>     >> > * gthr-dce.h (UNUSED): Attribute unused macro. 
> 
> You should use the ATTRIBUTE_UNUSED macro that we are using elsewhere
> in GCC.

There are couple of reasons why I didn't.  First, it is defined in
ansidecl.h.  There are procedures in v3 that include gthr.h.  However,
I don't believe they include ansidecl.h.  Secondly, ATTRIBUTE_UNUSED
or at least __attribute__ ((unused)) is incompatible with C++.  You
get an error message about nested functions.  There is a similar but
not identical macro in gthr-single.h.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]