diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2006-02-13 01:57:29 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2006-02-13 01:57:29 +0000 |
commit | d539b114d4e0a82f888f08fce4dd4fd5824ae784 (patch) | |
tree | 8a1baaccc52b3442ac068e838ba8d0c2c1936352 /gcc/c.opt | |
parent | feb04780354bec2f694f65e7b7a5b20ab07b3c0d (diff) | |
download | gcc-d539b114d4e0a82f888f08fce4dd4fd5824ae784.zip gcc-d539b114d4e0a82f888f08fce4dd4fd5824ae784.tar.gz gcc-d539b114d4e0a82f888f08fce4dd4fd5824ae784.tar.bz2 |
invoke.texi (-Write-strings): Document that it is enabled by default.
2006-02-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
* doc/invoke.texi (-Write-strings): Document that it is
enabled by
default.
* c.opt (-Wwrite-strings): Declare variable
warn_write_strings.
Clarify documentation.
* c-common.h (warn_write_strings): Remove.
* c-common.c (warn_write_strings): Likewise.
* c-opts.c (c_common_init_options): Enable -Wwrite-strings by
default for C++.
testsuite/
2006-02-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
* g++.dg/warn/no-write-strings.C: New test.
* g++.dg/warn/write-strings.C: Likewise.
* g++.dg/warn/write-strings-default.C: Likewise.
From-SVN: r110907
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -420,8 +420,8 @@ C ObjC C++ ObjC++ Do not warn about using variadic macros when -pedantic Wwrite-strings -C ObjC C++ ObjC++ -Give strings the type \"array of char\" +C ObjC C++ ObjC++ Var(warn_write_strings) +In C++, nonzero means warn about deprecated conversion from string literals to `char *'. In C, similar warning, except that the conversion is of course not deprecated by the ISO C standard. Wpointer-sign C ObjC Var(warn_pointer_sign) Init(-1) |