From 0e02961b00a9eb52cf3e1cbdbede7d5295a80b8f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 14 Apr 2007 06:13:14 +0000 Subject: Cleaned up warnings revealed by building with Xcode. --- xmlparse.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'xmlparse.cc') diff --git a/xmlparse.cc b/xmlparse.cc index c036c007..62d7ee03 100644 --- a/xmlparse.cc +++ b/xmlparse.cc @@ -201,7 +201,6 @@ unsigned int xml_parser_t::parse(std::istream& in, curr_comm = NULL; ignore = false; - unsigned int offset = 2; XML_Parser parser = XML_ParserCreate(NULL); current_parser = parser; @@ -216,20 +215,20 @@ unsigned int xml_parser_t::parse(std::istream& in, result = XML_Parse(parser, buf, std::strlen(buf), in.eof()); } catch (const std::exception& err) { - unsigned long line = XML_GetCurrentLineNumber(parser) - offset++; + //unsigned long line = XML_GetCurrentLineNumber(parser) - offset++; XML_ParserFree(parser); throw new parse_error(err.what()); } if (! have_error.empty()) { - unsigned long line = XML_GetCurrentLineNumber(parser) - offset++; + //unsigned long line = XML_GetCurrentLineNumber(parser) - offset++; parse_error err(have_error); std::cerr << "Error: " << err.what() << std::endl; have_error = ""; } if (! result) { - unsigned long line = XML_GetCurrentLineNumber(parser) - offset++; + //unsigned long line = XML_GetCurrentLineNumber(parser) - offset++; const char * err = XML_ErrorString(XML_GetErrorCode(parser)); XML_ParserFree(parser); throw new parse_error(err); -- cgit v1.2.3