https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87806
Bug ID: 87806 Summary: Option -Wall should warn about unused structs, typdefs, enums, etc Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: Ulrich.Windl at rz dot uni-regensburg.de Target Milestone: --- Gcc with -Wall warns about unused static and local variables for a long time, but it does not warn about unused typedefs, enums, structs, etc. I see that there are specific options to enable that, but they are not by default. Is it due to the fact that many #include files define a lot of such (and most of those are not used)? If so, maybe some #pragma to be used in include files could suppress the warning then. Maybe even there are move clever ideas to solve the problem. BTW: With having option -Wmissing-field-initializers I could even imagine to warn about single fields that are never used.