bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support FALLTHROUGH macro better in glibc+clang


From: Paul Eggert
Subject: Re: Support FALLTHROUGH macro better in glibc+clang
Date: Sat, 25 Mar 2023 14:24:18 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 2023-02-26 08:43, Bruno Haible wrote:
-# if __GNUC__ >= 7
+# if (__GNUC__ >= 7) || (__clang_major__ >= 10)

Sorry I didn't see this earlier.

Since this is protected by #ifdef _LIBC" it might be better to do this the glibc way. Something like the following, perhaps?

   # if __GNUC_PREREQ (7,0) || __glibc_has_attribute (__fallthrough__)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]