]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
cli: add Invalid mode
authortobtoht <thotbot@protonmail.com>
Thu, 10 Feb 2022 12:25:08 +0000 (13:25 +0100)
committertobtoht <thotbot@protonmail.com>
Thu, 10 Feb 2022 12:25:08 +0000 (13:25 +0100)
Silences compile warning

src/cli.h
src/main.cpp

index faba7036817f720c0a21f02d66f2db0c687d05c5..4b4c9578f99a77b44648c1078e91990d5b0ffbcb 100644 (file)
--- a/src/cli.h
+++ b/src/cli.h
@@ -13,6 +13,7 @@ class CLI : public QObject
 
 public:
     enum Mode {
+        Invalid,
         ExportContacts,
         ExportTxHistory,
         BruteforcePassword
index ec7cbfe081bfbe2f13b9380083555a07e2fda9be..1623663b18be050e4278316294aef37f6136f926 100644 (file)
@@ -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};