]> Savannah Git Hosting - gnulib.git/commit
dfa: Avoid warnings with some Apple clang versions.
authorBruno Haible <bruno@clisp.org>
Sun, 26 Feb 2023 15:56:19 +0000 (16:56 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 2 Mar 2023 21:06:35 +0000 (22:06 +0100)
commit2b0bc33c636d71bd7fa1258289d3379fb810c8c5
tree0a639786342ad93ed47f746b1f931d35a685912e
parent75976a9faf3a01e62ce2bdafb72a925fa05d842b
dfa: Avoid warnings with some Apple clang versions.

Reported by Werner Lemberg <wl@gnu.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-02/msg00159.html>.

* lib/dfa.c (FALLTHROUGH): When __apple_build_version__ is defined,
ignore __clang_major__.
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
ChangeLog
lib/dfa.c