invoke.texi (-Wmemset-transposed-args): Fix typos, adjust wording.

gcc/ChangeLog:

	* invoke.texi (-Wmemset-transposed-args): Fix typos, adjust wording.

From-SVN: r267920
This commit is contained in:
Martin Sebor 2019-01-14 11:26:32 -07:00
parent 7cc0fa5de7
commit 97d4188719

View file

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