From d539b114d4e0a82f888f08fce4dd4fd5824ae784 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Mon, 13 Feb 2006 01:57:29 +0000 Subject: invoke.texi (-Write-strings): Document that it is enabled by default. 2006-02-12 Gabriel Dos Reis * 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 * 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/c-common.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gcc/c-common.h') diff --git a/gcc/c-common.h b/gcc/c-common.h index ba7dc5c..6498255 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -406,11 +406,6 @@ extern int flag_const_strings; extern int flag_signed_bitfields; -/* Nonzero means warn about deprecated conversion from string constant to - `char *'. */ - -extern int warn_write_strings; - /* Warn about #pragma directives that are not recognized. */ extern int warn_unknown_pragmas; /* Tri state variable. */ -- cgit v1.1