Remove three warnings.

This commit is contained in:
Tom Ritchford
2015-03-26 12:37:16 -04:00
parent 18fdc175c6
commit 936e83759d
2 changed files with 3 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ DatabaseCon::DatabaseCon (Setup const& setup,
{
*session_ << initStrings[i];
}
catch (soci::soci_error& e)
catch (soci::soci_error&)
{
// ignore errors
}

View File

@@ -116,6 +116,7 @@ size_t getKBUsedAll (soci::session& s)
{
auto be = dynamic_cast<soci::sqlite3_session_backend*>(s.get_backend ());
assert (be); // Make sure the backend is sqlite
(void) be;
return static_cast<int>(sqlite_api::sqlite3_memory_used () / 1024);
}
@@ -124,6 +125,7 @@ size_t getKBUsedDB (soci::session& s)
// This function will have to be customized when other backends are added
auto be = dynamic_cast<soci::sqlite3_session_backend*>(s.get_backend ());
assert (be);
(void) be;
int cur = 0, hiw = 0;
sqlite_api::sqlite3_db_status (
be->conn_, SQLITE_DBSTATUS_CACHE_USED, &cur, &hiw, 0);