[Compilation] Pass caught exceptions by reference#979
Merged
random-zebra merged 3 commits intoSep 21, 2019
Conversation
|
Some questions:
|
1954e3d to
3b61e81
Compare
Author
|
Addressing your questions:
|
Good reference; I will check it out so I can be more authoritative in the future ;) |
05e8d12 to
5780e0d
Compare
random-zebra
previously approved these changes
Sep 16, 2019
random-zebra
left a comment
There was a problem hiding this comment.
utACK 5780e0d093568cd421547f12574bf2c7ada253a0
|
Needs rebase |
5780e0d to
ef33500
Compare
Gets rid of compiler warnings such as "warning: catching polymorphic type 'class std::runtime_error' by value [-Wcatch-value=]"
ef33500 to
bd68647
Compare
Author
|
Rebased |
|
Doesn't compile. There's some conflict leftover in masternode.cpp since #1001 has been merged. |
bd68647 to
c826092
Compare
Author
|
Indeed. Should be good now. |
furszy
approved these changes
Sep 20, 2019
random-zebra
added a commit
that referenced
this pull request
Sep 21, 2019
c826092 [Refactor] Replace tabs with spaces (warrows) b69f37e [Refactor] Add const qualifier to exception catching (warrows) bf91dac [Compilation] Pass caught exceptions by reference (warrows) Pull request description: Gets rid of compiler warnings such as "warning: catching polymorphic type 'class std::runtime_error' by value [-Wcatch-value=]" ACKs for top commit: furszy: ACK [`c826092`](c826092) random-zebra: ACK c826092 Tree-SHA512: a2c02fdeab2d0e3cddde7a983456a680776592e9381be90968e0dc04bc86b7d5ea4d9aeb8259d39060fcd04583bb35259170fe5c28b8f0e96cf7aa94a3f21b2c
Fuzzbawls
added a commit
that referenced
this pull request
Dec 21, 2020
… in CreateSig 2523f81 [Refactor] Pass caught logic_error by reference in CreateSig (random-zebra) Pull request description: Exceptions/errors caught should be passed by reference. If the catch-block is not modifying the exception/error, the reference should be `const` (same as we did way back in #979) Fix one instance in `TransactionSignatureCreator::CreateSig` where we are passing a logic_error by copy, causing the `catching polymorphic type` warning reported in #2076 ACKs for top commit: furszy: utACK 2523f81 Fuzzbawls: utACK 2523f81 Tree-SHA512: d13a0a2a9372610f3a5e67016053afbbac94d30f5d3dd8568352f7fd99356336058405f8526eaf1e6f751e2e48d7405425ad7a8a3a3f0ba8c6db620d12710ad2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gets rid of compiler warnings such as "warning: catching polymorphic type 'class std::runtime_error' by value [-Wcatch-value=]"