This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: feature request - unused arguments
- From: dewar at gnat dot com (Robert Dewar)
- To: Steven_Shaw at adc dot com, gcc at gcc dot gnu dot org
- Date: Tue, 23 Jul 2002 06:34:12 -0400 (EDT)
- Subject: Re: feature request - unused arguments
<<Please can someone add a warning for unused arguments in C and C++. It would be
much appreciated.
>>
We have this feature in Ada (GNAT) and we definitely find it useful. However
we also found it important to add
pragma Unreferenced (entity);
that would note that an entity (most often an argument) is deliberately
unreferenced.