xalloc_die() is declared in xalloc.h. No need to declare it also in xmemdup0.h.


2019-01-04  Bruno Haible  <br...@clisp.org>

        xmemdup0: Remove redundant code.
        * lib/xmemdup0.h (xalloc_die): Remove declaration.

diff --git a/lib/xmemdup0.h b/lib/xmemdup0.h
index 5ef4995..768f0b2 100644
--- a/lib/xmemdup0.h
+++ b/lib/xmemdup0.h
@@ -25,13 +25,6 @@
 extern "C" {
 # endif
 
-/* This function is always triggered when memory is exhausted.
-   It must be defined by the application, either explicitly
-   or by using gnulib's xalloc-die module.  This is the
-   function to call when one wants the program to die because of a
-   memory allocation failure.  */
-extern _Noreturn void xalloc_die (void);
-
 char *xmemdup0 (void const *p, size_t s);
 
 # ifdef __cplusplus


Reply via email to