gnustep-dev
[Top][All Lists]
Advanced

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

Re: warning when compiling base and other programs


From: Richard Frith-Macdonald
Subject: Re: warning when compiling base and other programs
Date: Wed, 24 Nov 2021 09:21:40 +0000


> On 24 Nov 2021, at 08:14, Frederik Seiffert <frederik@algoriddim.com> wrote:
> 
> Hi Riccardo,
> 
>> Am 23.11.2021 um 23:34 schrieb Riccardo Mottola <riccardo.mottola@libero.it>:
>> 
>> in this case it is coming from gcc 7.5, but I have seen it in other gcc
>> versions too. like gcc 11
> 
> Not sure then why the warning is happening, according to the GCC docs it 
> should be supported:
> https://gcc.gnu.org/onlinedocs/gcc-7.5.0/gcc/Common-Function-Attributes.html#index-format_005farg-function-attribute
> 
> I can see the warning also in the CI runs for GCC, but not with Clang. I 
> guess we could just enable it for Clang then (just like in Apple headers), 
> unless someone has another idea?

I had only tried it with clang (assuming that modern gcc behaved the same way), 
 but if it's a clang-specific feature then only enabling it for clang is better 
than not having it at all.


reply via email to

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