summaryrefslogtreecommitdiff
path: root/gnucash.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-14 06:13:14 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:35:32 -0400
commit0e02961b00a9eb52cf3e1cbdbede7d5295a80b8f (patch)
tree8328fa28555c1ba64ee2eca5d3fbb6324f0a906c /gnucash.cc
parent608d4f59fe00269a23079d3bbae7f06ec9711e6a (diff)
downloadfork-ledger-0e02961b00a9eb52cf3e1cbdbede7d5295a80b8f.tar.gz
fork-ledger-0e02961b00a9eb52cf3e1cbdbede7d5295a80b8f.tar.bz2
fork-ledger-0e02961b00a9eb52cf3e1cbdbede7d5295a80b8f.zip
Cleaned up warnings revealed by building with Xcode.
Diffstat (limited to 'gnucash.cc')
-rw-r--r--gnucash.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnucash.cc b/gnucash.cc
index 8095f9f3..9089638f 100644
--- a/gnucash.cc
+++ b/gnucash.cc
@@ -358,14 +358,14 @@ unsigned int gnucash_parser_t::parse(std::istream& in,
in.getline(buf, BUFSIZ - 1);
std::strcat(buf, "\n");
if (! XML_Parse(parser, buf, std::strlen(buf), in.eof())) {
- unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
+ //unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
const char * msg = XML_ErrorString(XML_GetErrorCode(parser));
XML_ParserFree(parser);
throw new parse_error(msg);
}
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 = "";