ref: defd4f589e0553da304a66d0a8dcad0f3a1ee98c
parent: dc4a98048dff10c1c39e358faa66d485d33cf41a
author: Ben10do <[email protected]>
date: Tue Jan 24 06:01:09 EST 2017
Add noreturn attribute to fatalerror() Should silence compiler warnings that expect fatalerror() to return.
--- a/include/asm/main.h
+++ b/include/asm/main.h
@@ -2,6 +2,7 @@
#define RGBDS_MAIN_H
#include <stdbool.h>
+#include "extern/stdnoreturn.h"
struct sOptions {
char gbgfx[4];
@@ -24,7 +25,7 @@
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