From b13a43159fa8acd8a0221a74aed321f8b999d0a0 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 11 Jun 2009 03:37:13 +0200 Subject: [PATCH] Static analyzers: Add noreturn attribute to die() --- include/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/util.h b/include/util.h index 5658492e..437411b6 100644 --- a/include/util.h +++ b/include/util.h @@ -54,7 +54,7 @@ void slog(char *fmt, ...); * Prints the message (see printf()) to stderr, then exits the program. * */ -void die(char *fmt, ...); +void die(char *fmt, ...) __attribute__((__noreturn__)); /** * Safe-wrapper around malloc which exits if malloc returns NULL (meaning that there -- 2.39.5