[PATCH] incorrect arguments designated in -Wnonnull for arrays

Jeff Law jeffreyalaw@gmail.com
Mon Jul 26 18:22:37 GMT 2021



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  <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.
I'll defer to Martin Sebor on this.

Martin S., can you cover the review of this patch from Martin U?

Thanks,
Jeff




More information about the Gcc-patches mailing list