-
Notifications
You must be signed in to change notification settings - Fork 1.2k
partial Backport 18216 (warn sign-compare) #4491
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
Conversation
|
This pull request has conflicts, please rebase. |
e7e919f to
3ba3507
Compare
3ba3507 to
36e5dc5
Compare
|
This pull request has conflicts, please rebase. |
36e5dc5 to
388db5a
Compare
|
This pull request has conflicts, please rebase. |
6853727 build: Enable -Werror=sign-compare (Ben Woosley) eac6a30 refactor: Rework asmap Interpret to avoid ptrdiff_t (Ben Woosley) df37377 test: Fix outstanding -Wsign-compare errors (Ben Woosley) Pull request description: Disallowing sign-comparison mismatches can help to prevent the introduction of overflow and interpretation bugs. In this case, ~all~ most existing violations are in the tests, and most simply required annotating the literal as unsigned for comparison. This was previously prevented by violations in leveldb which were fixed upstream and merged in bitcoin#17398. You can test that by building this branch against: 22d1118 vs 75fb37c ACKs for top commit: fjahr: re-ACK 6853727 practicalswift: ACK 6853727 Tree-SHA512: 14b5daa38c496fb51548feb30fb4dd179e6f76a8d355f52bc8e2a18f2f9340f0bc98dcf36d8b3d6521045d013891c3103749a4eda88ceef00202a6a0cf93f73c
388db5a to
17a8497
Compare
Signed-off-by: pasta <[email protected]>
|
This Pull Request may conflict if the Pull Requests below are merged first. #4649 |
|
This Pull Request may conflict if the Pull Requests below are merged first. #4650 |
|
This pull request has conflicts, please rebase. |
|
superseeded by #5722 |
this might depend on bitcoin 18750