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?

Thanks,
Jeff


Reply via email to