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

2021-09-01 Thread Pavel Hrdina
On Wed, Sep 01, 2021 at 01:29:25PM +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 with

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

2021-09-01 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 ag