commit ba7b634186a7d19ba41c6365be4ad6f323d5f350
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Mon Dec 14 23:24:05 2020 +0100

    make FALLTHROUGH work with qtcreator's code model
    
    the code model inspector claims that __GNUC__ is 10, but the #if works
    only with >= 4, which is plain wrong. so just handle clang explicitly.

 src/common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common.h b/src/common.h
index 359bbbb..63ae96f 100644
--- a/src/common.h
+++ b/src/common.h
@@ -76,7 +76,7 @@ typedef unsigned long ulong;
 # define DIAG_DISABLE(text)
 #endif
 
-#if __GNUC__ >= 7
+#if __GNUC__ >= 7 || defined(__clang__)
 # define FALLTHROUGH __attribute__((fallthrough));
 #else
 # define FALLTHROUGH


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to