libvirt/build-aux
Daniel P. Berrangé 345996c620 meson: avoid bogus warnings from clang and g_autoptr
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 again read, it thinks
it is unused not realizing the destructor has useful side effects.
For this we have to skip -Wunused-but-set-variable on CLang.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-09-01 15:29:28 +01:00
..
check-spacing.pl syntax-check: Don't forbid curly braces around single line condition body 2020-09-15 15:20:23 +02:00
Makefile.in meson: Check GNU sed's availability 2021-04-01 14:14:28 +02:00
Makefile.nonreentrant meson: add syntax-check 2020-08-03 09:27:06 +02:00
meson.build meson: Don't check whether /usr/local/bin/grep is GNU grep 2021-04-01 15:35:04 +02:00
syntax-check.mk meson: avoid bogus warnings from clang and g_autoptr 2021-09-01 15:29:28 +01:00