aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@pfeifer.com>2003-10-07 16:28:37 +0000
committerGerald Pfeifer <gerald@gcc.gnu.org>2003-10-07 16:28:37 +0000
commitf6d9224fe395acc0e839bd7cbb20d1d70a81e594 (patch)
tree62151e6714b55cc40da709e324c12b3fd3a68266 /gcc
parent456bc4bb588f3d1c248955255d058a933abfd989 (diff)
downloadgcc-f6d9224fe395acc0e839bd7cbb20d1d70a81e594.zip
gcc-f6d9224fe395acc0e839bd7cbb20d1d70a81e594.tar.gz
gcc-f6d9224fe395acc0e839bd7cbb20d1d70a81e594.tar.bz2
invoke.texi (Warning Options): Simplify and clarify the descriptions of -Wnonnull and -Winit-self.
* doc/invoke.texi (Warning Options): Simplify and clarify the descriptions of -Wnonnull and -Winit-self. From-SVN: r72194
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/invoke.texi12
2 files changed, 11 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 77ba3dc..6948765 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
+
+ * doc/invoke.texi (Warning Options): Simplify and clarify the
+ descriptions of -Wnonnull and -Winit-self.
+
2003-10-07 Richard Earnshaw <rearnsha@arm.com>
* optabs.c (init_intraclass_conv_libfuncs): Fix order of array
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index d6ab928..b943146 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -2173,7 +2173,7 @@ Enable @option{-Wformat} plus format checks not included in
@item -Wnonnull
@opindex Wnonnull
-Enable warning about passing a null pointer for arguments marked as
+Warn about passing a null pointer for arguments marked as
requiring a non-null value by the @code{nonnull} function attribute.
@option{-Wnonnull} is included in @option{-Wall} and @option{-Wformat}. It
@@ -2181,12 +2181,12 @@ can be disabled with the @option{-Wno-nonnull} option.
@item -Winit-self @r{(C, C++, and Objective-C only)}
@opindex Winit-self
-Enable warning about uninitialized variables which are initalized with themselves.
-Note this option can only be used with the @option{-Wuninitialized} option and
-that only works with @option{-O}.
+Warn about uninitialized variables which are initialized with themselves.
+Note this option can only be used with the @option{-Wuninitialized} option,
+which in turn only works with @option{-O1} and above.
-For an example, the following code will not warn about i being uninitialized
-without this option:
+For example, GCC will warn about @code{i} being uninitialized in the
+following snippet only when @option{-Winit-self} has been specified:
@smallexample
@group
int f()