Use of `g_auto*` macros

Simon Steinbeiss simon at
Sun Sep 5 23:16:53 CEST 2021

Hi Gaël!

Sorry for the late reply.
I guess I'm responsible for some of those macros in Xfce's codebase. At the
time I was not aware that only GCC and Clang could compile them, but as the
projects using them have been released and out there for a while my guess
would be that we don't worry too much about other compilers?

I found them convenient to use, that's all. So I don't have a strong
opinion here...


On Tue, Aug 24, 2021 at 11:24 PM Gaël Bonithon <
trash.paradise at> wrote:

> Hi,
> It seems that only two projects use these macros at the moment: libxfce4ui
> and xfce4-settings. More precisely, they are g_autoptr() and g_autofree.
> I was wondering to what extent the use of these macros could be extended
> to other projects, or if it could be a problem, since only GCC and Clang
> can compile them.
> Do we have to worry about other compilers? Do you have any other comments
> on this subject?
> Thanks!
> Cheers,
> Gaël
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Xfce4-dev mailing list