aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-03-13 21:23:17 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-07-05 08:59:38 +0300
commit014110c47d94ece6e3e655cdbf02ed8c91c7a5cf (patch)
treee8081ec6eb17c133d84b3457561021f5252e0807 /src/qt
parent7a49fdc58115845ece3a9890bf9498bee6b559de (diff)
downloadbitcoin-014110c47d94ece6e3e655cdbf02ed8c91c7a5cf.tar.xz
Use C++17 [[fallthrough]] attribute, and drop -Wno-implicit-fallthrough
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/rpcconsole.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index c973fdbe78..9bb675a5fc 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -287,6 +287,7 @@ bool RPCConsole::RPCParseCommandLine(interfaces::Node* node, std::string &strRes
}
if (breakParsing)
break;
+ [[fallthrough]];
}
case STATE_ARGUMENT: // In or after argument
case STATE_EATING_SPACES_IN_ARG:
@@ -400,6 +401,7 @@ bool RPCConsole::RPCParseCommandLine(interfaces::Node* node, std::string &strRes
strResult = lastResult.get_str();
else
strResult = lastResult.write(2);
+ [[fallthrough]];
case STATE_ARGUMENT:
case STATE_EATING_SPACES:
return true;