From beb42d71a0fd8ac75f3c889cb650b7d21fa9a740 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Thu, 2 May 2019 08:24:05 +0200 Subject: [PATCH] Silence GCC 7 warning "control reaches end of non-void function" (-Wreturn-type) in psbt.cpp --- src/psbt.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/psbt.cpp b/src/psbt.cpp index f31f2af0d..97bda51a6 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)