mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 17:56:13 -04:00
Fixed some compiler warnings
This commit is contained in:
parent
d26bd2cb8a
commit
dbd31fb56b
@ -238,7 +238,7 @@ void Database::key(const std::string& aKey) const
|
|||||||
const int ret = sqlite3_key(mpSQLite, aKey.c_str(), pass_len);
|
const int ret = sqlite3_key(mpSQLite, aKey.c_str(), pass_len);
|
||||||
check(ret);
|
check(ret);
|
||||||
}
|
}
|
||||||
#else
|
#else // SQLITE_HAS_CODEC
|
||||||
if (pass_len > 0) {
|
if (pass_len > 0) {
|
||||||
const SQLite::Exception exception("No encryption support, recompile with SQLITE_HAS_CODEC to enable.");
|
const SQLite::Exception exception("No encryption support, recompile with SQLITE_HAS_CODEC to enable.");
|
||||||
throw exception;
|
throw exception;
|
||||||
@ -258,7 +258,7 @@ void Database::rekey(const std::string& aNewKey) const
|
|||||||
const int ret = sqlite3_rekey(mpSQLite, nullptr, 0);
|
const int ret = sqlite3_rekey(mpSQLite, nullptr, 0);
|
||||||
check(ret);
|
check(ret);
|
||||||
}
|
}
|
||||||
#else
|
#else // SQLITE_HAS_CODEC
|
||||||
const SQLite::Exception exception("No encryption support, recompile with SQLITE_HAS_CODEC to enable.");
|
const SQLite::Exception exception("No encryption support, recompile with SQLITE_HAS_CODEC to enable.");
|
||||||
throw exception;
|
throw exception;
|
||||||
#endif // SQLITE_HAS_CODEC
|
#endif // SQLITE_HAS_CODEC
|
||||||
|
@ -303,7 +303,7 @@ TEST(Database, encryptAndDecrypt) {
|
|||||||
} // Close DB test.db3
|
} // Close DB test.db3
|
||||||
remove("test.db3");
|
remove("test.db3");
|
||||||
}
|
}
|
||||||
#else SQLITE_HAS_CODEC
|
#else // SQLITE_HAS_CODEC
|
||||||
TEST(Database, encryptAndDecrypt) {
|
TEST(Database, encryptAndDecrypt) {
|
||||||
remove("test.db3");
|
remove("test.db3");
|
||||||
{
|
{
|
||||||
@ -326,4 +326,4 @@ TEST(Database, encryptAndDecrypt) {
|
|||||||
} // Close DB test.db3
|
} // Close DB test.db3
|
||||||
remove("test.db3");
|
remove("test.db3");
|
||||||
}
|
}
|
||||||
#endif SQLITE_HAS_CODEC
|
#endif // SQLITE_HAS_CODEC
|
Loading…
x
Reference in New Issue
Block a user