We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e4b5d6e + 5a8a6e2 commit e46500dCopy full SHA for e46500d
src/Database.cpp
@@ -73,6 +73,10 @@ Database::Database(const std::string& aFilename,
73
Database::~Database() noexcept // nothrow
74
{
75
const int ret = sqlite3_close(mpSQLite);
76
+
77
+ // Avoid unreferenced variable warning when build in release mode
78
+ (void) ret;
79
80
// Only case of error is SQLITE_BUSY: "database is locked" (some statements are not finalized)
81
// Never throw an exception in a destructor :
82
SQLITECPP_ASSERT(SQLITE_OK == ret, "database is locked"); // See SQLITECPP_ENABLE_ASSERT_HANDLER
0 commit comments