Re: [libvirt PATCH] meson: avoid bogus warnings from clang and g_autoptr

2021-08-31 Thread Daniel P . Berrangé
On Tue, Aug 31, 2021 at 05:23:08PM +0200, Pavel Hrdina wrote: > On Tue, Aug 31, 2021 at 03:08:19PM +0100, Daniel P. Berrangé wrote: > > Clang has previously had trouble with G_DEFINE_AUTOPTR_CLEANUP_FUNC > > generated code, thinking it was unused. We turn off -Wunused-function > > to avoid

Re: [libvirt PATCH] meson: avoid bogus warnings from clang and g_autoptr

2021-08-31 Thread Pavel Hrdina
On Tue, Aug 31, 2021 at 03:08:19PM +0100, Daniel P. Berrangé wrote: > Clang has previously had trouble with G_DEFINE_AUTOPTR_CLEANUP_FUNC > generated code, thinking it was unused. We turn off -Wunused-function > to avoid tripping up on that with CLang. > > New CLang has started having trouble

[libvirt PATCH] meson: avoid bogus warnings from clang and g_autoptr

2021-08-31 Thread Daniel P . Berrangé
Clang has previously had trouble with G_DEFINE_AUTOPTR_CLEANUP_FUNC generated code, thinking it was unused. We turn off -Wunused-function to avoid tripping up on that with CLang. New CLang has started having trouble with g_autoptr now too. In usage scenarios where the variable is set, but never