summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/xalloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/xalloc.h b/include/xalloc.h
index 1d225d4a0..0129a85e2 100644
--- a/include/xalloc.h
+++ b/include/xalloc.h
@@ -19,7 +19,8 @@
# define XALLOC_EXIT_CODE EXIT_FAILURE
#endif
-static inline void __err_oom(const char *file, unsigned int line)
+static inline void __attribute__((__noreturn__))
+__err_oom(const char *file, unsigned int line)
{
err(XALLOC_EXIT_CODE, "%s: %u: cannot allocate memory", file, line);
}