-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Compilation] Pass caught exceptions by reference #979
[Compilation] Pass caught exceptions by reference #979
Conversation
Some questions:
|
1954e3d
to
3b61e81
Compare
Addressing your questions:
|
Good reference; I will check it out so I can be more authoritative in the future ;) |
05e8d12
to
5780e0d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 5780e0d
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
Rebased |
Doesn't compile. There's some conflict leftover in masternode.cpp since #1001 has been merged. |
bd68647
to
c826092
Compare
Indeed. Should be good now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK c826092
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK c826092
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
… 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
Gets rid of compiler warnings such as "warning: catching polymorphic type 'class std::runtime_error' by value [-Wcatch-value=]"