From: Michael Stapelberg Date: Thu, 11 Jun 2009 01:37:13 +0000 (+0200) Subject: Static analyzers: Add noreturn attribute to die() X-Git-Tag: 3.b~63 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b13a43159fa8acd8a0221a74aed321f8b999d0a0;p=i3%2Fi3 Static analyzers: Add noreturn attribute to die() --- 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