This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/71613] Useful warnings silenced when macros from system headers are used
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 27 Jun 2016 17:43:35 +0000
- Subject: [Bug c/71613] Useful warnings silenced when macros from system headers are used
- Auto-submitted: auto-generated
- References: <bug-71613-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71613
--- Comment #6 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
Rather than piecemeal fixes with no evidence of completeness, I think we
should disable the smarts around system header macro locations determining
whether diagnostics appear (i.e., the system-header tests for disabling
diagnostics should all use the expansion location), until we have a proper
design for avoiding such issues and have systematically reviewed all
diagnostics for conforming to such a design (if the design needs each
diagnostic function call to be reviewed).