From 38e8024ffab83dd0b19f6b0f436d4a589fc87eef Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 5 Mar 2022 02:10:35 +0100 Subject: [PATCH] Add missing return type for `unreachable_()` --- include/helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/helpers.h b/include/helpers.h index 5284f51a..a9896610 100644 --- 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