https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119528

--- Comment #6 from akallabeth+gnu at posteo dot net ---
oh, mea culpa :)

did miss the first declaration in your sample. with that it works.

this still feels like a workaround (and, as mentioned, with clang there 
are no such warnings)

regards

On 3/29/25 13:42, jakub at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119528
> 
> --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> You obviously need to declare the free function first, but without deprecated
> attribute and just add that attribute afterwards when you'll no longer use it
> in your code.
> That isn't any different from using it e.g. in some inline function which will
> be then deprecated as well etc.
>

Reply via email to