Add missing return type for unreachable_()

This commit is contained in:
ISSOtm
2022-03-05 02:10:35 +01:00
committed by Eldred Habert
parent 3bd6078537
commit 38e8024ffa

View File

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