Add new HAVE_ATTRIBUTE_DESTRUCTOR and XML_THREAD_LOCAL defines and drop defines removed from config.h.cmake.in. If threads are enabled and no thread-local attribute is found, print the same warning upstream does.
Drop checks for getaddrinfo, which no longer has a corresponding define, and putenv and rand_r, which are no longer used.
Drop support for embedded Trio library. libxml2 upstream dropped the Autotools code that would automatically enable it (CMake already didn't do so) with a commit message saying that Trio will be removed soon. Since the goal was to support building on systems without snprintf/vsnprintf, just require C99 instead.
Fix spurious too many arguments for format warnings, caused by __xmlSimpleError() calls with a NULL format argument, by building with -Wno-format-extra-args as upstream does.
Add new
HAVE_ATTRIBUTE_DESTRUCTOR
andXML_THREAD_LOCAL
defines and drop defines removed fromconfig.h.cmake.in
. If threads are enabled and no thread-local attribute is found, print the same warning upstream does.Drop checks for
getaddrinfo
, which no longer has a corresponding define, andputenv
andrand_r
, which are no longer used.Drop support for embedded Trio library. libxml2 upstream dropped the Autotools code that would automatically enable it (CMake already didn't do so) with a commit message saying that Trio will be removed soon. Since the goal was to support building on systems without
snprintf
/vsnprintf
, just require C99 instead.Fix spurious
too many arguments for format
warnings, caused by__xmlSimpleError()
calls with aNULL
format argument, by building with-Wno-format-extra-args
as upstream does.