Skip to content

Commit

Permalink
Fix unused parameter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
timrae committed Mar 31, 2017
1 parent b23f2e1 commit 400ab71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 400ab71

Please sign in to comment.