-
Notifications
You must be signed in to change notification settings - Fork 5k
zlib-ng: avoid suppressing WD4242 and WD4244 #105433
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
2453cc7
Make ZLIB_DEBUG a build option
carlossanlop a3d4565
Turn off ZLIB_DEBUG in our zlib-ng.cmake
carlossanlop 9e23740
Patch for zlib-ng/
carlossanlop 9f5e234
Mention the applied patch in zlib-ng-version.txt
carlossanlop f066d48
Revert that
carlossanlop e2106cd
Add aserts and casts to slide_hash*
carlossanlop 51c39e0
Add asserts and casts to check_match
carlossanlop f4e5207
Remove previous patch
carlossanlop 735a61b
Add the other patches
carlossanlop bb4722d
extra space
carlossanlop 8babcbe
Try with UINT16_MAX instead
carlossanlop d360ce8
Change data type in _MonoVarianceSearchTableEntry
carlossanlop 39485fa
Delete patches. If needed, will be submitted in separate PR.
carlossanlop 41c1b44
Remove unnecessary comment
carlossanlop 6e7b5b4
Comment for PR patch
carlossanlop ec56c25
Add comment at the top of zlib-ng.cmake to warn about using add_compi…
carlossanlop 2969513
Remove the add_compile_options, only use target_compile_options speci…
carlossanlop 5074685
Switch to Assert instead of assert
carlossanlop d99757e
Remove the assert includes too
carlossanlop File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -58,7 +58,9 @@ Z_INTERNAL block_state deflate_rle(deflate_state *s, int flush) { | |||||||||||
|
||||||||||||
/* Emit match if have run of STD_MIN_MATCH or longer, else emit literal */ | ||||||||||||
if (match_len >= STD_MIN_MATCH) { | ||||||||||||
check_match(s, s->strstart, s->strstart - 1, match_len); | ||||||||||||
Assert(s->strstart <= UINT16_MAX, "strstart should fit in uint16_t"); | ||||||||||||
Assert(s->match_start <= UINT16_MAX, "match_start should fit in uint16_t"); | ||||||||||||
check_match(s, (Pos)s->strstart, (Pos)s->strstart - 1, match_len); | ||||||||||||
Comment on lines
+61
to
+63
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't want to restart the CI for this. I can either fix this in a separate PR, or we can just leave it as is:
Suggested change
I'll make sure to submit the upstream PR with this fix though. |
||||||||||||
|
||||||||||||
bflush = zng_tr_tally_dist(s, 1, match_len - STD_MIN_MATCH); | ||||||||||||
|
||||||||||||
|
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.