bug-gnulib
[Top][All Lists]
Advanced

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

Re: gnulib-common.m4: Make _GL_UNUSED_LABEL effective for clang


From: Paul Eggert
Subject: Re: gnulib-common.m4: Make _GL_UNUSED_LABEL effective for clang
Date: Sun, 22 Aug 2021 13:22:59 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 8/22/21 1:17 PM, Bruno Haible wrote:
-#if !defined __cplusplus || _GL_GNUC_PREREQ (4, 5)
+#if (!defined __cplusplus || _GL_GNUC_PREREQ (4, 5)) || defined __clang__

I got a bit confused by the extra parentheses, thinking that somehow GCC and Clang differ with respect to C++. Perhaps remove the extra parens?

Also, your example used C code, but this fix doesn't affect C code. So can we assume the real problem was with C++ code?



reply via email to

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