https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87388
Bug ID: 87388 Summary: Feature request: header-only -Wc++-compat Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: lennox at cs dot columbia.edu Target Milestone: --- I have C code with header files which also need to be included from C++ code. I want the compiler to warn me if these header files aren't valid C++; however, keeping the C source files C++-compatible leads to unnecessary complexity. As an enhancement request, I'd like it to be possible for -Wc++-compat to warn only for code in (non-system) header files.