Skip to content

Commit 781c63a

Browse files
committed
utils: Fix clang warnings about __fallthough
Suggested-By: #32 Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>
1 parent c51a188 commit 781c63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/utils/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ extern "C" {
111111

112112
/* gcc attribute shorthands */
113113
#ifndef __fallthrough
114-
#if __GNUC__ >= 7
114+
#if __GNUC__ >= 7 || defined(__clang__)
115115
#define __fallthrough __attribute__((fallthrough))
116116
#else
117117
#define __fallthrough

0 commit comments

Comments
 (0)