This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/78989] Missing -Waddress warning
- From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Jan 2017 19:57:40 +0000
- Subject: [Bug c/78989] Missing -Waddress warning
- Auto-submitted: auto-generated
- References: <bug-78989-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78989
--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
...or to use a rich location to send two locations for the warning, giving:
return (asan_poison_variables &&
^~
# 6 "gimplify.cpp" 3 4
__null
~~~~~~
);
and for the logic that uses diagnostic_report_warnings_p to check all locations
in the rich location, requiring all to be within a system header for the
warning to be rejected.