mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove three warnings.
This commit is contained in:
@@ -47,7 +47,7 @@ DatabaseCon::DatabaseCon (Setup const& setup,
|
||||
{
|
||||
*session_ << initStrings[i];
|
||||
}
|
||||
catch (soci::soci_error& e)
|
||||
catch (soci::soci_error&)
|
||||
{
|
||||
// ignore errors
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user