PATCH: minor corrections to gthr-dce.h
John David Anglin
dave@hiauly1.hia.nrc.ca
Tue May 15 21:33:00 GMT 2001
> >>>>> "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)
More information about the Gcc-bugs
mailing list