Skip to content

Commit

Permalink
Compiler compatibility update (gcc-4.2).
Browse files Browse the repository at this point in the history
  • Loading branch information
mawis committed Nov 3, 2011
1 parent aa7d857 commit 8fa17d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2011-11-03 Matthias Wimmer <[email protected]>

* database.cc: adding missing include

2011-10-30 Matthias Wimmer <[email protected]>

* timestore.cc: encapsulate parsing of database values
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ(2.61)

AC_INIT(couriergrey.h)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE(couriergrey,0.3.0)
AM_INIT_AUTOMAKE(couriergrey,0.3.0.1)
AM_CONFIG_HEADER(config.h)
AC_LANG(C++)
AC_GNU_SOURCE
Expand Down
3 changes: 2 additions & 1 deletion database.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <iostream>
#include <sys/stat.h>
#include <cstdio>
#include <stdexcept>
#include <glibmm.h>

namespace couriergrey {
Expand Down Expand Up @@ -94,7 +95,7 @@ namespace couriergrey {
for (::datum key = ::gdbm_firstkey(db); key.dptr; key = ::gdbm_nextkey(db, key)) {
try {
result.push_back(std::string(key.dptr, key.dsize));
} catch (std::length_error) {
} catch (std::length_error len_err) {
std::cerr << "Length error!" << std::endl;
std::cerr << "Lenght is: " << key.dsize << std::endl;
std::cerr << "Key is: " << key.dptr << std::endl;
Expand Down

0 comments on commit 8fa17d9

Please sign in to comment.