From d2dc7aff99c2a51f24c65ed360b87075689747b5 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 6d37d7b07b..56e565baad 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) {