mirror of
https://github.com/openharmony/third_party_cmake.git
synced 2026-07-21 08:15:27 -04:00
cmXMLParser: Avoid -Wconversion warning
Add an explicit cast since we expect the conversion to be well within range.
This commit is contained in:
@@ -186,8 +186,8 @@ void cmXMLParserCharacterDataHandler(void* parser, const char* data,
|
||||
void cmXMLParser::ReportXmlParseError()
|
||||
{
|
||||
XML_Parser parser = static_cast<XML_Parser>(this->Parser);
|
||||
this->ReportError(XML_GetCurrentLineNumber(parser),
|
||||
XML_GetCurrentColumnNumber(parser),
|
||||
this->ReportError(static_cast<int>(XML_GetCurrentLineNumber(parser)),
|
||||
static_cast<int>(XML_GetCurrentColumnNumber(parser)),
|
||||
XML_ErrorString(XML_GetErrorCode(parser)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user