diff options
author | Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> | 2023-07-24 14:15:22 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-07-26 09:45:22 -0300 |
commit | 7dfa534ef07cffe9ddb2614e25fbb2e9ae193164 (patch) | |
tree | 3e10256355624e8576037270776c3a83cc992c58 /posix/tst-exec.c | |
parent | b40f5f84c41bc484d4792531a693d7583cecae0a (diff) | |
download | glibc-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 'posix/tst-exec.c')
0 files changed, 0 insertions, 0 deletions