Re: warning when compiling base and other programs
Richard Frith-Macdonald <[email protected]> Wed, 24 Nov 2021 09:21:40 +0000
| Newsgroups | gmane.comp.lib.gnustep.devel |
|---|---|
| Message-ID | <[email protected]> |
> On 24 Nov 2021, at 08:14, Frederik Seiffert <[email protected]> wrote: > > Hi Riccardo, > >> Am 23.11.2021 um 23:34 schrieb Riccardo Mottola <[email protected]>: >> >> 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.