aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-11-16 16:51:31 +0100
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-11-25 16:45:59 -0300
commit53fcdf5f743aa9b02972eec658e66f96d6a63386 (patch)
treee1bd3ed90d89027abe4b8ba6f0dbffd833f08a9b
parent83d4b42ded712bbbc22ceeefe886b8315190da5b (diff)
downloadglibc-53fcdf5f743aa9b02972eec658e66f96d6a63386.tar.xz
glibc-53fcdf5f743aa9b02972eec658e66f96d6a63386.zip
Silence most -Wzero-as-null-pointer-constant diagnostics
Replace 0 by NULL and {0} by {}. Omit a few cases that aren't so trivial to fix. Link: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117059> Link: <https://software.codidact.com/posts/292718/292759#answer-292759> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--argp/argp-fmtstream.c2
-rw-r--r--argp/argp-help.c34
-rw-r--r--argp/argp-parse.c44
-rw-r--r--catgets/gencat.c2
-rw-r--r--debug/backtracesyms.c2
-rw-r--r--elf/dl-find_object.c2
-rw-r--r--elf/dl-load.c4
-rw-r--r--elf/dl-load.h2
-rw-r--r--elf/dl-lookup.c2
-rw-r--r--elf/dl-minimal-malloc.c4
-rw-r--r--elf/dl-tunables.c4
-rw-r--r--elf/dynamic-link.h2
-rw-r--r--elf/readlib.c2
-rw-r--r--elf/tlsdeschtab.h6
-rw-r--r--hesiod/hesiod.c6
-rw-r--r--inet/rcmd.c12
-rw-r--r--inet/rexec.c2
-rw-r--r--inet/ruserpass.c4
-rw-r--r--libio/fileops.c2
-rw-r--r--libio/genops.c6
-rw-r--r--libio/iopopen.c2
-rw-r--r--libio/libioP.h5
-rw-r--r--libio/wfileops.c2
-rw-r--r--libio/wgenops.c2
-rw-r--r--locale/programs/xmalloc.c12
-rw-r--r--locale/setlocale.c2
-rw-r--r--locale/uselocale.c2
-rw-r--r--malloc/arena.c14
-rw-r--r--malloc/malloc-check.c4
-rw-r--r--malloc/malloc.c56
-rw-r--r--malloc/obstack.c16
-rw-r--r--malloc/reallocarray.c2
-rw-r--r--misc/getttyent.c2
-rw-r--r--misc/sbrk.c2
-rw-r--r--nis/nis_server.c2
-rw-r--r--nptl/pthread_create.c2
-rw-r--r--nptl_db/fetch-value.c2
-rw-r--r--nptl_db/td_init.c2
-rw-r--r--nptl_db/td_ta_clear_event.c2
-rw-r--r--nptl_db/td_ta_event_getmsg.c6
-rw-r--r--nptl_db/td_ta_map_lwp2thr.c8
-rw-r--r--nptl_db/td_ta_set_event.c2
-rw-r--r--nptl_db/td_ta_thr_iter.c10
-rw-r--r--nptl_db/td_ta_tsd_iter.c2
-rw-r--r--nptl_db/td_thr_event_enable.c2
-rw-r--r--nptl_db/td_thr_event_getmsg.c6
-rw-r--r--nptl_db/td_thr_get_info.c16
-rw-r--r--nptl_db/td_thr_getfpregs.c2
-rw-r--r--nptl_db/td_thr_getgregs.c2
-rw-r--r--nptl_db/td_thr_setfpregs.c2
-rw-r--r--nptl_db/td_thr_setgregs.c2
-rw-r--r--nptl_db/td_thr_tlsbase.c10
-rw-r--r--nptl_db/td_thr_tsd.c6
-rw-r--r--nptl_db/td_thr_validate.c10
-rw-r--r--nptl_db/thread_dbP.h6
-rw-r--r--nss/getaddrinfo.c4
-rw-r--r--posix/getopt.c2
-rw-r--r--posix/regcomp.c2
-rw-r--r--posix/regexec.c2
-rw-r--r--resolv/base64.c2
-rw-r--r--resolv/compat-gethnamaddr.c2
-rw-r--r--resolv/res_debug.c6
-rw-r--r--resolv/res_hconf.c14
-rw-r--r--stdio-common/iovfscanf.c2
-rw-r--r--string/argz-delete.c2
-rw-r--r--string/argz-extract.c2
-rw-r--r--string/argz-replace.c8
-rw-r--r--string/argz.h2
-rw-r--r--string/envz.c4
-rw-r--r--sunrpc/clnt_raw.c6
-rw-r--r--sunrpc/clnt_simp.c4
-rw-r--r--sunrpc/key_call.c2
-rw-r--r--sunrpc/svc_raw.c12
-rw-r--r--sunrpc/svc_simple.c2
-rw-r--r--sunrpc/xdr_mem.c2
-rw-r--r--sunrpc/xdr_sizeof.c4
-rw-r--r--sunrpc/xdr_stdio.c2
-rw-r--r--support/blob_repeat.c14
-rw-r--r--support/shell-container.c4
-rw-r--r--support/support_openpty.c2
-rw-r--r--support/support_set_vma_name_supported.c2
-rw-r--r--support/support_stack_alloc.c2
-rw-r--r--support/test-container.c2
-rw-r--r--support/xsigstack.c2
-rw-r--r--sysdeps/posix/system.c2
-rw-r--r--sysdeps/unix/sysv/linux/brk.c2
-rw-r--r--sysdeps/unix/sysv/linux/dl-early_allocate.c2
-rw-r--r--sysdeps/unix/sysv/linux/dl-sysdep.c2
-rw-r--r--sysdeps/unix/sysv/linux/gettimeofday.c4
-rw-r--r--sysdeps/unix/sysv/linux/settimeofday.c4
-rw-r--r--sysdeps/unix/sysv/linux/sigwait.c2
-rw-r--r--sysdeps/unix/sysv/linux/sigwaitinfo.c2
-rw-r--r--sysdeps/unix/sysv/linux/spawni.c8
-rw-r--r--sysdeps/x86/nptl/bits/struct_mutex.h2
-rw-r--r--timezone/zic.c6
-rw-r--r--wctype/wctrans.c2
-rw-r--r--wctype/wctrans_l.c2
97 files changed, 263 insertions, 262 deletions
diff --git a/argp/argp-fmtstream.c b/argp/argp-fmtstream.c
index eb0a886c72..35b5b1d0fe 100644
--- a/argp/argp-fmtstream.c
+++ b/argp/argp-fmtstream.c
@@ -74,7 +74,7 @@ __argp_make_fmtstream (FILE *stream,
if (! fs->buf)
{
free (fs);
-