Skip to content

Commit beb42d7

Browse files
Silence GCC 7 warning "control reaches end of non-void function" (-Wreturn-type) in psbt.cpp
1 parent 0936f35 commit beb42d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/psbt.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,9 @@ std::string PSBTRoleName(PSBTRole role) {
337337
case PSBTRole::SIGNER: return "signer";
338338
case PSBTRole::FINALIZER: return "finalizer";
339339
case PSBTRole::EXTRACTOR: return "extractor";
340+
// no default case, so the compiler can warn about missing cases
340341
}
342+
assert(false);
341343
}
342344

343345
bool DecodeBase64PSBT(PartiallySignedTransaction& psbt, const std::string& base64_tx, std::string& error)

0 commit comments

Comments
 (0)