Add noreturn attribute to die() in romcc.
authorStefan Reinauer <stepan@coresystems.de>
Sat, 3 Apr 2010 00:03:07 +0000 (00:03 +0000)
committerStefan Reinauer <stepan@openbios.org>
Sat, 3 Apr 2010 00:03:07 +0000 (00:03 +0000)
This makes life a lot easier for static analyzers such as scan-build.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5351 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

util/romcc/romcc.c

index b7c7a01d354bc4a879dda89bc583ff7cd45e5f52..e691f3f585ca9093077f3d134641190be290d6cf 100644 (file)
@@ -135,7 +135,7 @@ struct filelist {
 
 struct filelist *include_filelist = NULL;
 
-static void die(char *fmt, ...)
+static void __attribute__((noreturn)) die(char *fmt, ...)
 {
        va_list args;