[Bug c/87806] Option -Wall should warn about unused structs, typdefs, enums, etc

Ulrich.Windl at rz dot uni-regensburg.de gcc-bugzilla@gcc.gnu.org
Mon Nov 5 06:43:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87806

--- Comment #7 from Ulrich Windl <Ulrich.Windl at rz dot uni-regensburg.de> ---
(In reply to Tavian Barnes from comment #4)
> Perhaps this is reasonable for types that are defined in the file itself,
> not in an included header?

That's what I was thinking about. However it seems the compiler does not know
automatically what is an include file and what is a normal compilation unit (C
file).  Therefore I had suggested pragmas for the include files.


More information about the Gcc-bugs mailing list