[Python-checkins] python/dist/src/Modules pyexpat.c,2.57.6.1,2.57.6.2

Neal Norwitz neal@metaslash.com
Wed, 25 Sep 2002 18:10:32 -0400


fdrake@users.sourceforge.net wrote:
> 
> Be more careful with the type of the xmlhandlersetter; it takes an
> XML_Parser, which happens to be a pointer type, not an XML_Parser*.
> This generated warnings when compiled with Expat 1.95.5, which no
> longer defines XML_Parser to be void*.
>
> *** 90,94 ****
> - typedef void (*xmlhandlersetter)(XML_Parser *self, void *meth);
> + typedef void (*xmlhandlersetter)(XML_Parser self, void *meth);

I get a bunch of warnings now when compiling 2.2.2, see below.
This is with 1.95.2.  2.3 is fine.

One function is:
	pyxml_SetStartElementHandler(XML_Parser *parser, void *junk)
which is different from an xmlhandlersetter (should be XML_Parser).

2.2/Modules/pyexpat.c:1828: warning: initialization from incompatible pointer type
2.2/Modules/pyexpat.c:1831: warning: initialization from incompatible pointer type
2.2/Modules/pyexpat.c:1846: warning: initialization from incompatible pointer type
2.2/Modules/pyexpat.c:1849: warning: initialization from incompatible pointer type
2.2/Modules/pyexpat.c:1855: warning: initialization from incompatible pointer type
2.2/Modules/pyexpat.c:1858: warning: initialization from incompatible pointer type
2.2/Modules/pyexpat.c:1874: warning: initialization from incompatible pointer type
2.2/Modules/pyexpat.c:1877: warning: initialization from incompatible pointer type

Neal