mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-19 14:40:45 +02:00
Silence GCC 7 warning "control reaches end of non-void function" (-Wreturn-type) in psbt.cpp
This commit is contained in:
parent
0936f35f65
commit
beb42d71a0
@ -337,7 +337,9 @@ std::string PSBTRoleName(PSBTRole role) {
|
|||||||
case PSBTRole::SIGNER: return "signer";
|
case PSBTRole::SIGNER: return "signer";
|
||||||
case PSBTRole::FINALIZER: return "finalizer";
|
case PSBTRole::FINALIZER: return "finalizer";
|
||||||
case PSBTRole::EXTRACTOR: return "extractor";
|
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)
|
bool DecodeBase64PSBT(PartiallySignedTransaction& psbt, const std::string& base64_tx, std::string& error)
|
||||||
|
Loading…
Reference in New Issue
Block a user