From dbd31fb56b7a4b94244c03a1156b192700262afd Mon Sep 17 00:00:00 2001 From: Jorrit Wronski Date: Fri, 23 Dec 2016 14:56:44 +0100 Subject: [PATCH] Fixed some compiler warnings --- src/Database.cpp | 4 ++-- tests/Database_test.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Database.cpp b/src/Database.cpp index 45e2463..cfa5447 100644 --- a/src/Database.cpp +++ b/src/Database.cpp @@ -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 diff --git a/tests/Database_test.cpp b/tests/Database_test.cpp index 0e49bef..b42e89c 100644 --- a/tests/Database_test.cpp +++ b/tests/Database_test.cpp @@ -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 \ No newline at end of file +#endif // SQLITE_HAS_CODEC \ No newline at end of file