aboutsummaryrefslogtreecommitdiff
path: root/gcc/c.opt
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2006-02-13 01:57:29 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2006-02-13 01:57:29 +0000
commitd539b114d4e0a82f888f08fce4dd4fd5824ae784 (patch)
tree8a1baaccc52b3442ac068e838ba8d0c2c1936352 /gcc/c.opt
parentfeb04780354bec2f694f65e7b7a5b20ab07b3c0d (diff)
downloadgcc-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.opt4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c.opt b/gcc/c.opt
index 34739c6..8f58d3d 100644
--- a/gcc/c.opt
+++ b/gcc/c.opt
@@ -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)