mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-04 19:25:43 +00:00
Add missing return type for unreachable_()
This commit is contained in:
1 parent
3bd6078537
commit
38e8024ffa
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user