unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [COMMITTED] posix: Fix fnmatch.c on bootstrap
@ 2021-01-20 16:51 Adhemerval Zanella via Libc-alpha
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella via Libc-alpha @ 2021-01-20 16:51 UTC (permalink / raw)
  To: libc-alpha, Vaseeharan Vinayagamoorthy, Paul Eggert, Bruno Haible

Only define FALLTHROUGH for _LIBC and do not check __clang_major__
value.

It partially syncs with gnulib 5c52f00c69f39fe.

Checked with build-many-glibcs.py for aarch64-linux-gnu.
---
 posix/fnmatch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/posix/fnmatch.c b/posix/fnmatch.c
index 5896812c96..b8a71f164d 100644
--- a/posix/fnmatch.c
+++ b/posix/fnmatch.c
@@ -64,7 +64,7 @@ extern int fnmatch (const char *pattern, const char *string, int flags);
 #endif
 
 #ifdef _LIBC
-# if (__GNUC__ >= 7) || (__clang_major__ >= 10)
+# if __GNUC__ >= 7
 #  define FALLTHROUGH __attribute__ ((__fallthrough__))
 # else
 #  define FALLTHROUGH ((void) 0)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-20 16:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-20 16:51 [COMMITTED] posix: Fix fnmatch.c on bootstrap Adhemerval Zanella via Libc-alpha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).