diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-14 06:13:14 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:35:32 -0400 |
commit | 0e02961b00a9eb52cf3e1cbdbede7d5295a80b8f (patch) | |
tree | 8328fa28555c1ba64ee2eca5d3fbb6324f0a906c /xmlparse.cc | |
parent | 608d4f59fe00269a23079d3bbae7f06ec9711e6a (diff) | |
download | fork-ledger-0e02961b00a9eb52cf3e1cbdbede7d5295a80b8f.tar.gz fork-ledger-0e02961b00a9eb52cf3e1cbdbede7d5295a80b8f.tar.bz2 fork-ledger-0e02961b00a9eb52cf3e1cbdbede7d5295a80b8f.zip |
Cleaned up warnings revealed by building with Xcode.
Diffstat (limited to 'xmlparse.cc')
-rw-r--r-- | xmlparse.cc | 7 |
1 files changed, 3 insertions, 4 deletions
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); |