shithub: rgbds

Download patch

ref: 38e8024ffab83dd0b19f6b0f436d4a589fc87eef
parent: 3bd60785373ddb2d9c201c92933271a12a177ba1
author: ISSOtm <eldredhabert0@gmail.com>
date: Fri Mar 4 21:10:35 EST 2022

Add missing return type for `unreachable_()`

--- a/include/helpers.h
+++ b/include/helpers.h
@@ -31,7 +31,7 @@
 	#define attr_(...)
 	// This seems to generate similar code to __builtin_unreachable, despite different semantics
 	// Note that executing this is undefined behavior (declared _Noreturn, but does return)
-	static inline _Noreturn unreachable_(void) {}
+	static inline _Noreturn void unreachable_(void) {}
 #endif
 
 // Use builtins whenever possible, and shim them otherwise