]> Savannah Git Hosting - gnulib.git/commit
Port FALLTHROUGH to clang 3.4 and earlier
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Jan 2021 21:40:16 +0000 (13:40 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Jan 2021 01:09:58 +0000 (17:09 -0800)
commit605e20a698d3f7296cda18ac7dd84b1a8f388b50
tree1e175acc33337e6fb6f29e8e0e7c2eb310c340a7
parent65f62234c816cae5a0f42fc02c9edb94b5a2f72a
Port FALLTHROUGH to clang 3.4 and earlier

Problem reported by Akim Demaille in:
https://lists.gnu.org/r/bug-gnulib/2021-01/msg00241.html
* lib/cdefs.h (__glibc_has_attribute):
* m4/gnulib-common.m4 (gl_COMMON_BODY):
Do not trust __has_attribute in clang 3.4 and earlier, as
<https://releases.llvm.org/3.5.0/tools/clang/docs/ReleaseNotes.html>
says that __has_attribute is unreliable in these old versions.
ChangeLog
lib/cdefs.h
m4/gnulib-common.m4