vala.eclass: adapt modern c workaround for gcc

GCC doesn't have -Wincompatible-function-pointer-types, just -Wincompatible-pointer-types,
and it makes the latter fatal in GCC 14.

Just adapt the workaround to use that for now until Vala is fixed properly upstream.

Bug: https://bugs.gentoo.org/892708
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-12-04 07:12:36 +00:00
parent 42d7504600
commit 5fe21d4ec0

View File

@@ -174,7 +174,7 @@ vala_setup() {
# See bug #892708.
# Workaround for https://gitlab.gnome.org/GNOME/vala/-/issues/1408.
append-cflags $(test-flags-CC -Wno-incompatible-function-pointer-types)
append-cflags $(test-flags-CC -Wno-incompatible-pointer-types)
}
# @FUNCTION: vala_src_prepare