Skip to content

Commit e46500d

Browse files
committed
Merge pull request SRombauts#56 from aurelien35/Dev
Removed a warning in release build with Visual Studio
2 parents e4b5d6e + 5a8a6e2 commit e46500d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Database.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ Database::Database(const std::string& aFilename,
7373
Database::~Database() noexcept // nothrow
7474
{
7575
const int ret = sqlite3_close(mpSQLite);
76+
77+
// Avoid unreferenced variable warning when build in release mode
78+
(void) ret;
79+
7680
// Only case of error is SQLITE_BUSY: "database is locked" (some statements are not finalized)
7781
// Never throw an exception in a destructor :
7882
SQLITECPP_ASSERT(SQLITE_OK == ret, "database is locked"); // See SQLITECPP_ENABLE_ASSERT_HANDLER

0 commit comments

Comments
 (0)