This is the mail archive of the gcc@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: warnings in GCC source?


On 06 September 2007 16:55, Basile STARYNKEVITCH wrote:

> 2. generated code: when some C files are generated, it may be hard to
> avoid some warnings, typically a generated C function might have unused
> arguments (which might be not very easy to detect at generation stage).


  Generate "__attribute__ ((unused))" on all parameters/variables, regardless.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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