Skip to content
Snippets Groups Projects
Commit f49d883d authored by Nicolas Saenz Julienne's avatar Nicolas Saenz Julienne Committed by Paolo Bonzini
Browse files

meson.build: Fix glib -Wno-unused-function workaround


We want to only enable '-Wno-unused-function' if glib's version is
smaller than '2.57.2' and has a G_DEFINE_AUTOPTR_CLEANUP_FUNC()
implementation that doesn't take into account unused functions. But the
compilation test isn't working as intended as '-Wunused-function' isn't
enabled while running it.

Let's enable it.

Fixes: fc9a809e ("build: move glib detection and workarounds to meson")
Signed-off-by: default avatarNicolas Saenz Julienne <nsaenz@amazon.com>

Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230524173123.66483-1-nsaenz@amazon.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent fb00aa61
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment