invoke.texi (-Write-strings): Document that it is enabled by default.
commitd539b114d4e0a82f888f08fce4dd4fd5824ae784
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Mon, 13 Feb 2006 01:57:29 +0000 (13 01:57 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Mon, 13 Feb 2006 01:57:29 +0000 (13 01:57 +0000)
tree8a1baaccc52b3442ac068e838ba8d0c2c1936352
parentfeb04780354bec2f694f65e7b7a5b20ab07b3c0d
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
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-opts.c
gcc/c.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/no-write-strings.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/write-strings-default.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/write-strings.C [new file with mode: 0644]