From a9f425751cc697b005d09c346f479d1b53f165e4 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/utils/utils.h b/include/utils/utils.h index ce891df..35d8e41 100644 --- a/include/utils/utils.h +++ b/include/utils/utils.h @@ -1,4 +1,4 @@ -/* +//* * Copyright (c) 2020-2024 Siddharth Chandrasekaran * * SPDX-License-Identifier: Apache-2.0 @@ -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