On 7/28/2021 12:56 AM, Uecker, Martin wrote:
Am Dienstag, den 27.07.2021, 10:55 -0600 schrieb Martin Sebor:
On 7/26/21 12:22 PM, Jeff Law via Gcc-patches wrote:
On 7/25/2021 10:23 AM, Uecker, Martin wrote:
Two arguments are switched for -Wnonnull when
warning about array parameters with bounds > 0
and which are NULL.

This patch corrects the mistake.

Martin


2021-07-25  Martin Uecker  <muec...@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.
I'll defer to Martin Sebor on this.

Martin S., can you cover the review of this patch from Martin U?
The patch is correct.  Thanks for the fix!  It would ideally go
into GCC 11 as well.
Committed.

Should I also push it to origin/releases/gcc-11 ?
Yes, the branch should be open for bugfixes.
jeff

Reply via email to