* lib/fnmatch.c (FALLTHROUGH): Use __attribute__ ((__fallthrough__))
also in clang >= 10.
* lib/fts.c (FALLTHROUGH): Likewise.
* lib/regex_internal.h (FALLTHROUGH): Likewise.
+2023-03-27 Paul Eggert <eggert@cs.ucla.edu>
+
+ Support FALLTHROUGH macro better in glibc+clang.
+ * lib/fnmatch.c (FALLTHROUGH): Use __attribute__ ((__fallthrough__))
+ also in clang >= 10.
+ * lib/fts.c (FALLTHROUGH): Likewise.
+ * lib/regex_internal.h (FALLTHROUGH): Likewise.
+
2023-03-27 Bruno Haible <bruno@clisp.org>
wcsstr: Ensure worst-case linear execution time.
#endif
#ifdef _LIBC
-# if __GNUC__ >= 7
+# if __glibc_has_attribute (__fallthrough__)
# define FALLTHROUGH __attribute__ ((__fallthrough__))
# else
# define FALLTHROUGH ((void) 0)
#endif
#ifdef _LIBC
-# if __GNUC__ >= 7
+# if __glibc_has_attribute (__fallthrough__)
# define FALLTHROUGH __attribute__ ((__fallthrough__))
# else
# define FALLTHROUGH ((void) 0)
}
#ifdef _LIBC
-# if __GNUC__ >= 7
+# if __glibc_has_attribute (__fallthrough__)
# define FALLTHROUGH __attribute__ ((__fallthrough__))
# else
# define FALLTHROUGH ((void) 0)