Skip to content

Commit a9f4257

Browse files
author
Siddharth Chandrasekaran
committedAug 3, 2024
utils: Fix macro for unreachable code in Windows platforms
Signed-off-by: Siddharth Chandrasekaran <s00832113@china.huawei.com>
1 parent 3f343bc commit a9f4257

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎include/utils/utils.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
//*
22
* Copyright (c) 2020-2024 Siddharth Chandrasekaran <sidcha.dev@gmail.com>
33
*
44
* SPDX-License-Identifier: Apache-2.0
@@ -135,7 +135,7 @@ extern "C" {
135135
#define __format_printf(x, y)
136136
#define __noreturn
137137
#define __weak
138-
#define __unreachable()
138+
#define __unreachable() __assume(0)
139139
#define likely(p) (p)
140140
#define unlikely(p) (p)
141141
#define isatty _isatty

0 commit comments

Comments
 (0)