Hello,
This simple program fails to build:
#include <stddef.h>
#include <libxml/xmlerror.h>
int main(void) {
initGenericErrorDefaultFunc(NULL);
}
/usr/include/libxml2/libxml/xmlerror.h:23:45: error: invalid use of void expression
23 | xmlSetGenericErrorFunc(NULL, (h) ? *(h) : NULL)
The compatibility macro is indeed wrong in the NULL case. The attached
patch, submitted upstream, fixes this.
Samuel
Samuel Thibault, le mer. 20 août 2025 10:32:27 +0200, a ecrit: Upstream has merged the patch. Samuel