about summary refs log tree commit diff
path: root/iconvdata/tst-iconv7.c
diff options
context:
space:
mode:
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>2023-07-24 14:15:22 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-07-26 09:45:22 -0300
commit7dfa534ef07cffe9ddb2614e25fbb2e9ae193164 (patch)
tree3e10256355624e8576037270776c3a83cc992c58 /iconvdata/tst-iconv7.c
parentb40f5f84c41bc484d4792531a693d7583cecae0a (diff)
downloadglibc-7dfa534ef07cffe9ddb2614e25fbb2e9ae193164.tar.gz
glibc-7dfa534ef07cffe9ddb2614e25fbb2e9ae193164.tar.xz
glibc-7dfa534ef07cffe9ddb2614e25fbb2e9ae193164.zip
malloc: Fix set-freeres.c with gcc 6
Old GCC might trigger the the comparison will always evaluate as ‘true’
warnig for static build:

set-freeres.c:87:14: error: the comparison will always evaluate as
‘true’ for the address of ‘__libc_getgrgid_freemem_ptr’ will never be
NULL [-Werror=address]
   if (&__ptr != NULL)      \

So add pragma weak for all affected usages.

Checked on x86_64 and i686 with gcc 6 and 13.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'iconvdata/tst-iconv7.c')
0 files changed, 0 insertions, 0 deletions