From 9e9e8ef2b41fef29c05920edca5d7645d940b1b8 Mon Sep 17 00:00:00 2001 From: Siddharth Chandrasekaran Date: Sat, 3 Aug 2024 16:02:49 +0200 Subject: [PATCH] utils: Fix macro for unreachable code in Windows platforms Signed-off-by: Siddharth Chandrasekaran --- include/utils/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/utils/utils.h b/include/utils/utils.h index ce891df..b9da4f6 100644 --- a/include/utils/utils.h +++ b/include/utils/utils.h @@ -135,7 +135,7 @@ extern "C" { #define __format_printf(x, y) #define __noreturn #define __weak -#define __unreachable() +#define __unreachable() __assume(0) #define likely(p) (p) #define unlikely(p) (p) #define isatty _isatty