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: 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.


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