This is the mail archive of the gcc-bugs@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]

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


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.


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