https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61579

--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> ---
One consequence of it not being a warning option is that -Werror=write-strings
is accepted but behaves identically to -Wwrite-strings, which is pretty
surprising.

You need to use -Wwrite-strings -Werror=discarded-qualifiers to really enforce
string literals as const types (which would make a lot more sense if it was
-fwrite-strings).

Reply via email to