]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc/ChangeLog:
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jan 2019 18:26:32 +0000 (18:26 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jan 2019 18:26:32 +0000 (18:26 +0000)
* invoke.texi (-Wmemset-transposed-args): Fix typos, adjust wording.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267920 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/doc/invoke.texi

index abfb1d19ed16e9ddbc0572a5592a36ebd75b3342..5ed1d1334206978cc610ffb00aad7d6e81301ee8 100644 (file)
@@ -6959,14 +6959,15 @@ the element size.  This warning is enabled by @option{-Wall}.
 @item -Wmemset-transposed-args
 @opindex Wmemset-transposed-args
 @opindex Wno-memset-transposed-args
-Warn for suspicious calls to the @code{memset} built-in function, if the
-second argument is not zero and the third argument is zero.  This warns e.g.@:
-about @code{memset (buf, sizeof buf, 0)} where most probably
-@code{memset (buf, 0, sizeof buf)} was meant instead.  The diagnostics
-is only emitted if the third argument is literal zero.  If it is some
-expression that is folded to zero, a cast of zero to some type, etc., 
-it is far less likely that the user has mistakenly exchanged the arguments 
-and no warning is emitted.  This warning is enabled by @option{-Wall}.
+Warn for suspicious calls to the @code{memset} built-in function where
+the second argument is not zero and the third argument is zero.  For
+example, the call @code{memset (buf, sizeof buf, 0)} is diagnosed because
+@code{memset (buf, 0, sizeof buf)} was meant instead.  The diagnostic
+is only emitted if the third argument is a literal zero.  Otherwise, if
+it is an expression that is folded to zero, or a cast of zero to some
+type, it is far less likely that the arguments have been mistakenly
+transposed and no warning is emitted.  This warning is enabled
+by @option{-Wall}.
 
 @item -Waddress
 @opindex Waddress