Suggested by Alexei Podtelezhnikov <apodtele@gmail.com>.
* lib/dfa.c (FALLTHROUGH): Assume that Apple clang, in C mode, supports
__attribute__ ((__fallthrough__)) starting with version 1200.
References:
https://en.wikipedia.org/wiki/Xcode#Xcode_11.0_-_14.x_(since_SwiftUI_framework)_2
https://github.com/apple/llvm-project/blob/swift-5.3-RELEASE/clang/test/Sema/fallthrough-attr.c
+2023-02-28 Bruno Haible <bruno@clisp.org>
+
+ dfa: Tweak the last patch.
+ Suggested by Alexei Podtelezhnikov <apodtele@gmail.com>.
+ * lib/dfa.c (FALLTHROUGH): Assume that Apple clang, in C mode, supports
+ __attribute__ ((__fallthrough__)) starting with version 1200.
+ References:
+ https://en.wikipedia.org/wiki/Xcode#Xcode_11.0_-_14.x_(since_SwiftUI_framework)_2
+ https://github.com/apple/llvm-project/blob/swift-5.3-RELEASE/clang/test/Sema/fallthrough-attr.c
+
2023-02-27 ChuanGang Jiang <jiangchuanganghw@outlook.com>
fts: fail gracefully when out of memory
# define FALLTHROUGH [[__fallthrough__]]
# elif ((__GNUC__ >= 7) \
|| (defined __apple_build_version__ \
- ? __apple_build_version__ >= 14000000 \
+ ? __apple_build_version__ >= 12000000 \
: __clang_major__ >= 10))
# define FALLTHROUGH __attribute__ ((__fallthrough__))
# else