aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2019-05-02 08:24:05 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2019-05-02 15:08:22 +0200
commitbeb42d71a0fd8ac75f3c889cb650b7d21fa9a740 (patch)
tree045f1cf620595f04eeac8d51421460845966ff74
parent0936f35f65ad778c1308f00b42b6182c7e64270f (diff)
Silence GCC 7 warning "control reaches end of non-void function" (-Wreturn-type) in psbt.cpp
-rw-r--r--src/psbt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/psbt.cpp b/src/psbt.cpp
index f31f2af0d1..97bda51a63 100644
--- a/src/psbt.cpp
+++ b/src/psbt.cpp
@@ -337,7 +337,9 @@ std::string PSBTRoleName(PSBTRole role) {
case PSBTRole::SIGNER: return "signer";
case PSBTRole::FINALIZER: return "finalizer";
case PSBTRole::EXTRACTOR: return "extractor";
+ // no default case, so the compiler can warn about missing cases
}
+ assert(false);
}
bool DecodeBase64PSBT(PartiallySignedTransaction& psbt, const std::string& base64_tx, std::string& error)