This web mail archive is frozen.
This page is part of a frozen web archive of this mailing list.
You can still navigate around this archive, but know that no new mails
have been added to it since July of 2016.
Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.
Jeff Squyres wrote:
> Doing some compiler warning validation this morning, it looks like topology-xml.c:hwloc_topology_export_xml() creates a DTD by calling xmlCreateIntSubset() but then never does anything with this DTD.
> Is the call to xmlCreateIntSubset() necessary?
I was not very familiar with the libxml API when I wrote this code (and
I am still not).
>From what I remember, this line was necessary if we want "hwloc.dtd" to
appear the XML file header.
> If so, does the resulting dtd need to be used and later freed?
Valgrind looks happy. If I add xmlFreeDtd near the end of the export
function, I am getting some valgrind warnings. So unless somebody really
needs what to do here (in both import and export), I'd just keep things
as they are :)