From defd4f589e0553da304a66d0a8dcad0f3a1ee98c Mon Sep 17 00:00:00 2001 From: Ben10do Date: Tue, 24 Jan 2017 11:01:09 +0000 Subject: [PATCH] Add noreturn attribute to fatalerror() Should silence compiler warnings that expect fatalerror() to return. --- include/asm/main.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/asm/main.h b/include/asm/main.h index 811b5c13..9488512d 100644 --- a/include/asm/main.h +++ b/include/asm/main.h @@ -2,6 +2,7 @@ #define RGBDS_MAIN_H #include +#include "extern/stdnoreturn.h" struct sOptions { char gbgfx[4]; @@ -24,7 +25,7 @@ extern void opt_Push(void); extern void opt_Pop(void); extern void opt_Parse(char *s); -void fatalerror(const char *fmt, ...); +noreturn void fatalerror(const char *fmt, ...); void yyerror(const char *fmt, ...); #define YY_FATAL_ERROR fatalerror