Skip Menu |

This queue is for tickets about the XML-Parser CPAN distribution.

Report information
The Basics
Id: 92030
Status: resolved
Priority: 0/
Queue: XML-Parser

People
Owner: Nobody in particular
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.43



Subject: printf format mismatch
Date: Fri, 10 Jan 2014 16:21:18 +0000
To: bug-XML-Parser [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
Messages from gcc: Expat.xs: In function 'append_error': Expat.xs:220:8: warning: format '%d' expects argument of type 'int', but argument 4 has type 'XML_Size' [-Wformat] Expat.xs:220:8: warning: format '%d' expects argument of type 'int', but argument 5 has type 'XML_Size' [-Wformat] Expat.xs:220:8: warning: format '%d' expects argument of type 'int', but argument 6 has type 'XML_Index' [-Wformat] Attached patch fixes. -zefram

Message body is not shown because sender requested not to inline it.

Note: current type of return of XML_GetCurrentLineNumber in Expat.xs is 'int'. This is incorrect for current version of expat, but may be useful for compatibility with old expat versions. Currently it returns either long or long long depending on expat compilation options. Converting to long should be ok unless very big documents are parsed. -- Alexandr Ciornii, http://chorny.net