This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/79677] Weird handling of -Werror=


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]