From fb36bf54d3cced0ab0deeccd26f3ea1e4f9a68b1 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 10 Feb 2022 13:25:08 +0100 Subject: [PATCH] cli: add Invalid mode Silences compile warning --- src/cli.h | 1 + src/main.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/cli.h b/src/cli.h index faba703..4b4c957 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 ec7cbfe..1623663 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};