diff --git a/src/ripple/app/data/DatabaseCon.cpp b/src/ripple/app/data/DatabaseCon.cpp index 4bb10a6e85..801783cd01 100644 --- a/src/ripple/app/data/DatabaseCon.cpp +++ b/src/ripple/app/data/DatabaseCon.cpp @@ -47,7 +47,7 @@ DatabaseCon::DatabaseCon (Setup const& setup, { *session_ << initStrings[i]; } - catch (soci::soci_error& e) + catch (soci::soci_error&) { // ignore errors } diff --git a/src/ripple/app/data/SociDB.cpp b/src/ripple/app/data/SociDB.cpp index 69564e8ad7..796eef71b5 100644 --- a/src/ripple/app/data/SociDB.cpp +++ b/src/ripple/app/data/SociDB.cpp @@ -116,6 +116,7 @@ size_t getKBUsedAll (soci::session& s) { auto be = dynamic_cast(s.get_backend ()); assert (be); // Make sure the backend is sqlite + (void) be; return static_cast(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(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);