This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: warnings in GCC source?
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Basile STARYNKEVITCH'" <basile at starynkevitch dot net>, <gcc at gcc dot gnu dot org>
- Date: Thu, 6 Sep 2007 17:00:21 +0100
- Subject: RE: warnings in GCC source?
- References: <46E022E3.2000707@starynkevitch.net>
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....