Skip to content

Commit

Permalink
Fixed some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jowr committed Dec 23, 2016
1 parent d26bd2c commit dbd31fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Database.cpp
Expand Up @@ -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;
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/Database_test.cpp
Expand Up @@ -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");
{
Expand All @@ -326,4 +326,4 @@ TEST(Database, encryptAndDecrypt) {
} // Close DB test.db3
remove("test.db3");
}
#endif SQLITE_HAS_CODEC
#endif // SQLITE_HAS_CODEC

0 comments on commit dbd31fb

Please sign in to comment.