This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Ada fixes for mingw32- adaint.c (6/6)
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: Arnaud Charlet <charlet at ACT-Europe dot FR>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, charlet at act-europe dot fr
- Date: Wed, 22 Oct 2003 20:26:45 +1000 (EST)
- Subject: Re: PATCH: Ada fixes for mingw32- adaint.c (6/6)
--- Arnaud Charlet <charlet@ACT-Europe.FR> wrote: > > This silences the warnings in ada/adaint.c.
>
> This is not OK: you are marking parameters unused, while they are not
> on e.g. unix platforms.
>
All __attribute__((unused)) does is turn off the warnings -- note the
'possibly' in excerpt from gcc.info.
`unused'
This attribute, attached to a variable, means that the variable is
meant to be possibly unused. GCC will not produce a warning for
this variable.
Danny
> The ANSI, parenthesis and static parts look fine, but I'd rather see
> a separate patch with these changes only before giving my OK.
>
> Arno
http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.