From af1a298f88672892e5f20a20c42aae6ddcb9723c Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 8 Jan 2024 20:48:21 -0800 Subject: python3-lxml: Disable incompatible-function-pointer-types warning as error Signed-off-by: Khem Raj --- conf/nonclangable.conf | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'conf/nonclangable.conf') diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 627b1da..8ab5bc3 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -277,6 +277,12 @@ CFLAGS:remove:pn-mozjs:toolchain-clang = "-fno-tree-vrp" CFLAGS:append:pn-ffmpeg:riscv64 = " -march=rv64gczbb" CFLAGS:append:pn-ffmpeg:riscv32 = " -march=rv32gczbb" +# python3-lxml_5.0.0 onwards need this option with clang until the functions are fixes +# | src/lxml/etree.c:246911:63: error: incompatible function pointer types passing 'void (void *, const xmlError *)' (aka 'void (void *, const struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (* +#)(void *, struct _xmlError *)') [-Wincompatible-function-pointer-types] +#| 246911 | xmlSchematronSetValidStructuredErrors(__pyx_v_valid_ctxt, __pyx_f_4lxml_5etree__receiveError, ((void *)__pyx_v_self->__pyx_base._error_log)); +#| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +CFLAGS:append:pn-python3-lxml:toolchain-clang = " -Wno-error=incompatible-function-pointer-types" # otherwise systemd efi fails to build # error: the 'sse' unit is not supported with this instruction set TUNE_CCARGS:remove:pn-systemd:toolchain-clang = "-mfpmath=sse" -- cgit v1.2.3-54-g00ecf