]> git.ipfire.org Git - thirdparty/glibc.git/commit
xmalloc: Fix warnings with gcc analyzer
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 28 Jul 2021 11:28:17 +0000 (16:58 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 28 Jul 2021 12:15:14 +0000 (17:45 +0530)
commitb8e8bb324a376cd99bb61b6c21f63c395cae9b5d
tree890c19c4c34237fbe40d0dac187189cd2e83626a
parent4aedc25f55eda50010f2932fdb0a533db6f89f61
xmalloc: Fix warnings with gcc analyzer

Tell the compiler that xmalloc family of allocators always return
non-NULL.  xrealloc in locale/programs also always returns non-NULL,
but that conflicts with default realloc behaviour and that of xrealloc
in libsupport, so keep it as is for now and resolve the differences
later.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
include/programs/xmalloc.h
misc/sys/cdefs.h