[m-dev.] Spurious warnings with gcc -Warray-bounds

Zoltan Somogyi zoltan.somogyi at runbox.com
Fri Mar 4 18:46:11 AEDT 2022


2022-03-04 17:56 GMT+11:00 "Julien Fischer" <jfischer at opturion.com>:
> I see a couple of options here:
> 
> 1. We could redefine MR_strdiff and friends as follows:
> 
>     #define MR_streq(s1, s2) ((strcmp)(s1, s2) == 0)
> 
> and require that the actual strcmp() function be called.
> 
> 2. We can turn of that warning for the affected versions of GCC.
> 
> Given that the are so many open false positives reported against that
> warning, my preference would be for (2).

Agreed.

Zoltan.



More information about the developers mailing list