Re: [xml] win32

Date view Thread view Subject view Author view

From: David Doolin (doolin@cs.utk.edu)
Date: Mon Jan 31 2000 - 12:41:15 EST


Some compiler warning, with explanations, on HTMLparser:
The line number of the file is after the file name,
like so: ..\..\HTMLparser.c(linenumber).

HTMLparser.c
D:\dave\libxml-1.8.6\HTMLparser.c(931) : warning C4018: '<' : signed/unsigned mismatch

...

-> while ((nbchars < max) && (CUR != end) &&
           (CUR != end2) && (CUR != end3)) {
...

    while (( (unsigned int) nbchars < max) && (CUR != end) &&

will fix the warning.

-------

This one I don't understand:

D:\dave\libxml-1.8.6\HTMLparser.c(2220) : warning C4090: 'function' : different 'const' qualifiers
D:\dave\libxml-1.8.6\HTMLparser.c(2220) : warning C4022: 'realloc' : pointer mismatch for actual parameter 1

...

   atts = (const xmlChar **) xmlRealloc(atts, maxatts * sizeof(xmlChar *));

...

--------

Needs a cast:

D:\dave\libxml-1.8.6\HTMLparser.c(2260) : warning C4090: 'function' : different 'const' qualifiers
D:\dave\libxml-1.8.6\HTMLparser.c(2260) : warning C4022: 'free' : pointer mismatch for actual parameter 1

        xmlFree(atts); ---> xmlFree((xmlChar *)atts);

------

Hope this helps.

Dave D

----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:01 EDT