]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR other/35648 (-Wall includes -Wwrite-strings)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Sat, 23 Aug 2008 15:36:32 +0000 (15:36 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Sat, 23 Aug 2008 15:36:32 +0000 (15:36 +0000)
2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR 35648
* doc/invoke.texi (Wwrite-strings): Clarify description.

From-SVN: r139517

gcc/ChangeLog
gcc/doc/invoke.texi

index 06707dd562ae93407c7585f7f58d0f6da4e2aee2..8f291e83f3fa95b6923752635d965dd4dc82e8ab 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
+
+       PR 35648
+       * doc/invoke.texi (Wwrite-strings): Clarify description.
+       
 2008-08-23  Ira Rosen  <irar@il.ibm.com>
 
        PR tree-optimization/37174
index 1280e4928b1f4525f4d50f203ad4b171b66360a8..3b71fd345ad015369f677f0bba69e44177c26f77 100644 (file)
@@ -3607,16 +3607,17 @@ two- or four-byte boundaries.
 @opindex Wwrite-strings
 @opindex Wno-write-strings
 When compiling C, give string constants the type @code{const
-char[@var{length}]} so that
-copying the address of one into a non-@code{const} @code{char *}
-pointer will get a warning; when compiling C++, warn about the
-deprecated conversion from string literals to @code{char *}.  This
-warning, by default, is enabled for C++ programs.
-These warnings will help you find at
-compile time code that can try to write into a string constant, but
-only if you have been very careful about using @code{const} in
-declarations and prototypes.  Otherwise, it will just be a nuisance;
-this is why we did not make @option{-Wall} request these warnings.
+char[@var{length}]} so that copying the address of one into a
+non-@code{const} @code{char *} pointer will get a warning.  These
+warnings will help you find at compile time code that can try to write
+into a string constant, but only if you have been very careful about
+using @code{const} in declarations and prototypes.  Otherwise, it will
+just be a nuisance. This is why we did not make @option{-Wall} request
+these warnings.
+
+When compiling C++, warn about the deprecated conversion from string
+literals to @code{char *}.  This warning is enabled by default for C++
+programs.
 
 @item -Wclobbered
 @opindex Wclobbered