Fixed some compiler warnings

This commit is contained in:
Jorrit Wronski 2016-12-23 14:56:44 +01:00
parent d26bd2cb8a
commit dbd31fb56b
2 changed files with 4 additions and 4 deletions

View File

@ -238,7 +238,7 @@ void Database::key(const std::string& aKey) const
const int ret = sqlite3_key(mpSQLite, aKey.c_str(), pass_len);
check(ret);
}
#else
#else // SQLITE_HAS_CODEC
if (pass_len > 0) {
const SQLite::Exception exception("No encryption support, recompile with SQLITE_HAS_CODEC to enable.");
throw exception;
@ -258,7 +258,7 @@ void Database::rekey(const std::string& aNewKey) const
const int ret = sqlite3_rekey(mpSQLite, nullptr, 0);
check(ret);
}
#else
#else // SQLITE_HAS_CODEC
const SQLite::Exception exception("No encryption support, recompile with SQLITE_HAS_CODEC to enable.");
throw exception;
#endif // SQLITE_HAS_CODEC

View File

@ -303,7 +303,7 @@ TEST(Database, encryptAndDecrypt) {
} // Close DB test.db3
remove("test.db3");
}
#else SQLITE_HAS_CODEC
#else // SQLITE_HAS_CODEC
TEST(Database, encryptAndDecrypt) {
remove("test.db3");
{
@ -326,4 +326,4 @@ TEST(Database, encryptAndDecrypt) {
} // Close DB test.db3
remove("test.db3");
}
#endif SQLITE_HAS_CODEC
#endif // SQLITE_HAS_CODEC