> On 24 Nov 2021, at 08:14, Frederik Seiffert <frede...@algoriddim.com> wrote:
>
> Hi Riccardo,
>
>> Am 23.11.2021 um 23:34 schrieb Riccardo Mottola <riccardo.mott...@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.