This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/79677] Weird handling of -Werror=
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 22 Feb 2017 17:29:03 +0000
- Subject: [Bug c/79677] Weird handling of -Werror=
- Auto-submitted: auto-generated
- References: <bug-79677-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677
--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
For the theory of how I think this should behave, see
<https://gcc.gnu.org/ml/gcc-patches/2012-05/msg00419.html> (referring back
to <https://gcc.gnu.org/ml/gcc-bugs/2012-04/msg02134.html> and
<https://gcc.gnu.org/ml/gcc/2010-01/msg00063.html> for the concept of
distance for options overriding each other). That is,
-Werror=format-security should act like a -Wformat-security variant, and
so all these examples should warn/error.
I don't know what the immediate cause of this issue or appropriate fix in
the context of the present implementation might be.