]> Savannah Git Hosting - gnulib.git/commit
xalloc: pacify -Wanalyzer-possible-null-argument
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 May 2020 16:24:05 +0000 (09:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 May 2020 16:26:42 +0000 (09:26 -0700)
commitffbb0ced8b2a01c2e355fa7d41db1232453f28b5
tree13ffa43f8a78515a6f7e44113824852f002c6f8f
parent5900cc66a80dcb50244e75345320c433c7d2860b
xalloc: pacify -Wanalyzer-possible-null-argument

Problem reported for GCC 10.1.0 by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
* lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
(xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
(xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
ChangeLog
lib/xmalloc.c