]> git.ipfire.org Git - thirdparty/glibc.git/commit
Disable spurious -Warray-bounds for ypclnt.c (bug 26687)
authorJoseph Myers <joseph@codesourcery.com>
Fri, 30 Oct 2020 21:40:25 +0000 (21:40 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 30 Oct 2020 21:40:25 +0000 (21:40 +0000)
commit882774658cb8daee4c16677a3fd674f6052cc157
tree161246175c2d51ee71165a3b9650c4ca5f9884ff
parent5c3b0374ebe0aa4b0a434c0addb4c455886a0986
Disable spurious -Warray-bounds for ypclnt.c (bug 26687)

Included among the GCC 11 warnings listed in bug 26687, but not fixed
when that bug was marked as FIXED, are -Warray-bounds warnings in
nis/ypclnt.c.  These are all for different calls to the same piece of
code, which already has a comment explaining that the element accessed
is in a common prefix of the various structures.  On the basis of that
comment, this patch treats the warning as a false positive and
disables it for that code.

Tested with build-many-glibcs.py for arm-linux-gnueabi, where,
together with my previous two patches, this allows the build of glibc
to complete with GCC 11 (further build failures appear in the
testsuite).

Reviewed-by: DJ Delorie <dj@redhat.com>
nis/ypclnt.c