bug-gnulib
[Top][All Lists]
Advanced

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

Re: pure and const function attributes


From: Bruno Haible
Subject: Re: pure and const function attributes
Date: Fri, 01 May 2020 10:38:58 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-177-generic; KDE/5.18.0; x86_64; ; )

Marc Nieper-Wißkirchen wrote:
> #if __GNUC__ >= 3
> __attribute__ ((__pure__))
> #endif
> 
> A feature test in configure for the attributes would be even better
> because other compilers like Clang will also accept the GCC attributes

The preprocessor expression '__GNUC__ >= 3' evaluates to true on clang.
So, there is no issue here.

Bruno




reply via email to

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