This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

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.


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