[Bug c/79677] Weird handling of -Werror=
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Wed Feb 22 17:29:00 GMT 2017
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.
More information about the Gcc-bugs
mailing list