/usr/lib/llvm/17/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I. -I../../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o xml.bc xml.c xml.c:1177:45: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types] 1177 | xmlSetStructuredErrorFunc((void *) errcxt, xml_errorHandler); | ^~~~~~~~~~~~~~~~ /usr/include/libxml2/libxml/xmlerror.h:898:29: note: passing argument to parameter 'handler' here 898 | xmlStructuredErrorFunc handler); | ^ xml.c:4784:55: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types] 4784 | xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler); | ^~~~~~~~~~~~~~~~ /usr/include/libxml2/libxml/xmlerror.h:898:29: note: passing argument to parameter 'handler' here 898 | xmlStructuredErrorFunc handler); | ^ xml.c:4838:55: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types] 4838 | xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler); | ^~~~~~~~~~~~~~~~ /usr/include/libxml2/libxml/xmlerror.h:898:29: note: passing argument to parameter 'handler' here 898 | xmlStructuredErrorFunc handler); | ^ xml.c:4981:55: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types] 4981 | xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler); | ^~~~~~~~~~~~~~~~ /usr/include/libxml2/libxml/xmlerror.h:898:29: note: passing argument to parameter 'handler' here 898 | xmlStructuredErrorFunc handler); | ^ 4 errors generated. Reproducible: Always
Created attachment 884040 [details] emerge --info
Created attachment 884041 [details] Build Log
*** This bug has been marked as a duplicate of bug 923055 ***