Fix unused parameter warning

This commit is contained in:
Timothy Rae 2017-03-31 12:22:48 +09:00
parent b23f2e155f
commit 400ab71fa3

View File

@ -259,6 +259,7 @@ void Database::rekey(const std::string& aNewKey) const
check(ret);
}
#else // SQLITE_HAS_CODEC
static_cast<void>(aNewKey); // silence unused parameter warning
const SQLite::Exception exception("No encryption support, recompile with SQLITE_HAS_CODEC to enable.");
throw exception;
#endif // SQLITE_HAS_CODEC