aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2021-10-05 14:25:40 +0000
committerJoseph Myers <joseph@codesourcery.com>2021-10-05 14:25:40 +0000
commita0f0c08e4fe18e78866539b0571f8e4b57dba7a3 (patch)
treecd6d610cd495e306bfd8fd743b62ae18b57ddb4b /sysdeps/unix/sysv
parentc75b106145c30e6c7bcf87f384a5c68ce56406e9 (diff)
downloadglibc-a0f0c08e4fe18e78866539b0571f8e4b57dba7a3.tar
glibc-a0f0c08e4fe18e78866539b0571f8e4b57dba7a3.tar.gz
glibc-a0f0c08e4fe18e78866539b0571f8e4b57dba7a3.tar.bz2
glibc-a0f0c08e4fe18e78866539b0571f8e4b57dba7a3.zip
Fix stdlib/tst-setcontext.c for GCC 12 -Warray-compare
Building stdlib/tst-setcontext.c fails with GCC mainline: tst-setcontext.c: In function 'f2': tst-setcontext.c:61:16: error: comparison between two arrays [-Werror=array-compare] 61 | if (on_stack < st2 || on_stack >= st2 + sizeof (st2)) | ^ tst-setcontext.c:61:16: note: use '&on_stack[0] < &st2[0]' to compare the addresses The comparison in this case is deliberate, so adjust it as suggested in that note. Tested with build-many-glibcs.py (GCC mainline) for aarch64-linux-gnu.
Diffstat (limited to 'sysdeps/unix/sysv')
0 files changed, 0 insertions, 0 deletions