mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Removed a warning in release build with Visual Studio
This commit is contained in:
parent
e4b5d6eeed
commit
5a8a6e243e
@ -73,6 +73,10 @@ Database::Database(const std::string& aFilename,
|
||||
Database::~Database() noexcept // nothrow
|
||||
{
|
||||
const int ret = sqlite3_close(mpSQLite);
|
||||
|
||||
// Avoid unreferenced variable warning when build in release mode
|
||||
(void) ret;
|
||||
|
||||
// Only case of error is SQLITE_BUSY: "database is locked" (some statements are not finalized)
|
||||
// Never throw an exception in a destructor :
|
||||
SQLITECPP_ASSERT(SQLITE_OK == ret, "database is locked"); // See SQLITECPP_ENABLE_ASSERT_HANDLER
|
||||
|
Loading…
x
Reference in New Issue
Block a user