From: tobtoht Date: Thu, 10 Feb 2022 12:25:08 +0000 (+0100) Subject: cli: add Invalid mode X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=fb36bf54d3cced0ab0deeccd26f3ea1e4f9a68b1;p=gamesguru%2Ffeather.git cli: add Invalid mode Silences compile warning --- diff --git a/src/cli.h b/src/cli.h index faba7036..4b4c9578 100644 --- a/src/cli.h +++ b/src/cli.h @@ -13,6 +13,7 @@ class CLI : public QObject public: enum Mode { + Invalid, ExportContacts, ExportTxHistory, BruteforcePassword diff --git a/src/main.cpp b/src/main.cpp index ec7cbfe0..1623663b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -176,6 +176,7 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) { return CLI::Mode::ExportTxHistory; if (bruteforcePassword) return CLI::Mode::BruteforcePassword; + return CLI::Mode::Invalid; }(); CLI cli{mode, &parser, &app};