]> 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 20:05:10 +0000 (21:05 +0100)
commit5d0fb63a3cd9049232b0046bedb3d121eabacbc2
treecbfafce62924ded58ae2819c4c95eb50d5a2ddaa
parentdbf38a0e447a4ba40b2b3496e0c9e9782e086e1c
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