https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122398
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- Surely if you change msg to const xmlError* then it will work for old and new versions of libxml2. Assigning xmlError* to const xmlError* is fine, and assigning const xmlError* to const xmlError* is also fine.
