[Bug c/51579] GCC should be able report a warning for usage of parameters marked with __attribute__((unused))

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 16 16:22:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51579

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-16 15:54:32 UTC ---
The very common case is that __attribute__((unused)) parameter is only used
conditionally, e.g. guarded by some preprocessor macro or used in some
preprocessor macro that only expands to something including that macro argument
in some cases and in other cases doesn't use the parameter at all.



More information about the Gcc-bugs mailing list