fnmatch, regex, fts: FALLTHROUGH consistency
commit5c52f00c69f39fe86ec087654893087a83290ee7
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 20 Jan 2021 02:35:30 +0000 (19 18:35 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 20 Jan 2021 02:37:02 +0000 (19 18:37 -0800)
treee96d9178880d21afc906d326e01497b89387403c
parent2ef5a9b4b25381bc4805adf13f9f3a266af9c313
fnmatch, regex, fts: FALLTHROUGH consistency

Be more consistent about how FALLTHROUGH is defined.
For Gnulib, use attribute.h.  For glibc, use __GNUC__ >= 7.
Problem for glibc reported by Vaseeharan Vinayagamoorthy in:
https://sourceware.org/pipermail/libc-alpha/2021-January/121778.html
* lib/fnmatch.c (FALLTHROUGH) [_LIBC]:
* lib/regex_internal.h (FALLTHROUGH) [_LIBC]:
Don’t worry about Clang, as it’s not needed and provokes GCC.
* lib/fts.c (FALLTHROUGH) [!_LIBC]:
* lib/regex_internal.h (FALLTHROUGH) [!_LIBC]:
Rely on attribute.h for FALLTHROUGH
* modules/regex: Depend on attribute module.
ChangeLog
lib/fnmatch.c
lib/fts.c
lib/regex_internal.h
modules/regex