Use of `g_auto*` macros

Gaël Bonithon trash.paradise at
Mon Sep 6 10:17:43 CEST 2021

Hi Simon,

Thank you for responding! I thought my email was going to get lost in the August dustbin, so I opened a new issue on xfce4-dev-tools soon after (which I should have done from the start ^^):

So I propose to continue the discussion there for anyone interested.


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, September 5th, 2021 at 9:16 PM, Simon Steinbeiss <simon at> wrote:

> 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...
> Cheers
> Simon
> 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