diff options
| author | practicalswift <[email protected]> | 2019-05-02 08:24:05 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2019-05-02 15:08:22 +0200 |
| commit | beb42d71a0fd8ac75f3c889cb650b7d21fa9a740 (patch) | |
| tree | 045f1cf620595f04eeac8d51421460845966ff74 /src | |
| parent | Merge #15842: refactor: replace isPotentialtip/waitForNotifications by higher... (diff) | |
| download | discoin-beb42d71a0fd8ac75f3c889cb650b7d21fa9a740.tar.xz discoin-beb42d71a0fd8ac75f3c889cb650b7d21fa9a740.zip | |
Silence GCC 7 warning "control reaches end of non-void function" (-Wreturn-type) in psbt.cpp
Diffstat (limited to 'src')
| -rw-r--r-- | src/psbt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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) |