]> git.ipfire.org Git - thirdparty/gcc.git/commit
Correct a mistake in a warnung for -Wnonnull.
authorMartin Uecker <muecker@gwdg.de>
Wed, 28 Jul 2021 06:41:38 +0000 (08:41 +0200)
committerMartin Uecker <muecker@gwdg.de>
Wed, 28 Jul 2021 06:48:30 +0000 (08:48 +0200)
commit8af0c50a29346f97a370f76bd881ccb4252b1e4d
tree7f945fa19ee014ad27cadf887ada47fefa190458
parente78480ad0983cf75813af5e02d68cdad09e441e9
Correct a mistake in a warnung for -Wnonnull.

In the warning for -Wnonnull when warning about array parameters
with bounds > 0 and which are NULL the numbers referring to the
two arguments are switched. This patch corrects the mistake.

2021-07-28  Martin Uecker  <muecker@gwdg.de>

gcc/
* calls.c (maybe_warn_rdwr_sizes): Correct argument
numbers in warning that were switched.

gcc/testsuite/
* gcc.dg/Wnonnull-4.c: Correct argument numbers in warnings.
gcc/calls.c
gcc/testsuite/gcc.dg/Wnonnull-4.c