From b8830dfd327cd07eeead394ef33a2b57487c0516 Mon Sep 17 00:00:00 2001 From: James Ring Date: Tue, 22 Oct 2019 16:26:36 -0700 Subject: [PATCH] Don't show a warning when opening a database without WITH_XC_YUBIKEY. --- src/cli/DatabaseCommand.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cli/DatabaseCommand.cpp b/src/cli/DatabaseCommand.cpp index 6d37d7b07..56e565baa 100644 --- a/src/cli/DatabaseCommand.cpp +++ b/src/cli/DatabaseCommand.cpp @@ -52,7 +52,11 @@ int DatabaseCommand::execute(const QStringList& arguments) db = Utils::unlockDatabase(args.at(0), !parser->isSet(Command::NoPasswordOption), parser->value(Command::KeyFileOption), +#ifdef WITH_XC_YUBIKEY parser->value(Command::YubiKeyOption), +#else + "", +#endif parser->isSet(Command::QuietOption) ? Utils::DEVNULL : Utils::STDOUT, Utils::STDERR); if (!db) {