diff --git a/src/script/miniscript.cpp b/src/script/miniscript.cpp index 1aa1ddc397..cb4d4cb783 100644 --- a/src/script/miniscript.cpp +++ b/src/script/miniscript.cpp @@ -245,7 +245,6 @@ Type ComputeType(Fragment fragment, Type x, Type y, Type z, const std::vector> DecomposeScript(const CScript& script) diff --git a/src/script/miniscript.h b/src/script/miniscript.h index e38bb1c37d..1fb0e17b12 100644 --- a/src/script/miniscript.h +++ b/src/script/miniscript.h @@ -532,7 +532,6 @@ public: } } assert(false); - return {}; }; return TreeEval(false, downfn, upfn); } @@ -632,9 +631,9 @@ public: } return std::move(str) + ")"; } - default: assert(false); + default: break; } - return ""; // Should never be reached. + assert(false); }; return TreeEvalMaybe(false, downfn, upfn); @@ -711,7 +710,6 @@ public: } } assert(false); - return {0, {}, {}}; } internal::StackSize CalcStackSize() const { @@ -762,7 +760,6 @@ public: } } assert(false); - return {{}, {}}; } /** Check whether any key is repeated.