Re: xmalloc calling undeclared xalloc_die function

2023-01-05 Thread Florian Weimer
* Bruno Haible: > Florian Weimer wrote: >> lib/xmalloc.c contains this function definition, unconditionally: >> >> static void * _GL_ATTRIBUTE_PURE >> nonnull (void *p) >> { >> if (!p) >> xalloc_die (); >> return p; >> } >> >> But the declaration of xalloc_die in

Re: xmalloc calling undeclared xalloc_die function

2022-12-09 Thread Bruno Haible
Florian Weimer wrote: > lib/xmalloc.c contains this function definition, unconditionally: > > static void * _GL_ATTRIBUTE_PURE > nonnull (void *p) > { > if (!p) > xalloc_die (); > return p; > } > > But the declaration of xalloc_die in lib/xalloc.h is conditional: > > #if

xmalloc calling undeclared xalloc_die function

2022-12-09 Thread Florian Weimer
lib/xmalloc.c contains this function definition, unconditionally: static void * _GL_ATTRIBUTE_PURE nonnull (void *p) { if (!p) xalloc_die (); return p; } But the declaration of xalloc_die in lib/xalloc.h is conditional: #if GNULIB_XALLOC_DIE /* This function is