X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxalloc-die.c;h=80b4194345ee175b3ac5c0bf15214d9d5c244eb9;hb=4f6a7ef5f2097b501ddeac9db94d02306e4546d0;hp=a714e43fc4a08c630efad31282df85c5ce8ca36d;hpb=abac9b73490cd4d59a1e454c6ade5fd2073f2d2f;p=gnulib.git diff --git a/lib/xalloc-die.c b/lib/xalloc-die.c index a714e43fc..80b419434 100644 --- a/lib/xalloc-die.c +++ b/lib/xalloc-die.c @@ -22,10 +22,7 @@ #include -#ifndef GNULIB_LIBPOSIX #include "error.h" -#endif - #include "exitfail.h" #include "gettext.h" @@ -34,11 +31,9 @@ void xalloc_die (void) { -#ifndef GNULIB_LIBPOSIX error (exit_failure, 0, "%s", _("memory exhausted")); -#endif - /* The `noreturn' cannot be given to error, since it may return if + /* _Noreturn cannot be given to error, since it may return if its first argument is 0. To help compilers understand the xalloc_die does not return, call abort. Also, the abort is a safety feature if exit_failure is 0 (which shouldn't happen). */