-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
[1.12 Merge]Hdf5 1 12 warnings fixes #1715
Merged
derobins
merged 14 commits into
HDFGroup:hdf5_1_12
from
jhendersonHDF:hdf5_1_12_warnings_fixes
May 3, 2022
Merged
[1.12 Merge]Hdf5 1 12 warnings fixes #1715
derobins
merged 14 commits into
HDFGroup:hdf5_1_12
from
jhendersonHDF:hdf5_1_12_warnings_fixes
May 3, 2022
Conversation
This file contains 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
…flow warnings from GCC (HDFGroup#1706) * Avoid a signed overflow: check the range of `entry_ptr->age` before increasing it instead of increasing it and then checking the range. This quiets a GCC warning. * Avoid the potential for signed overflow by rewriting expressions `MAX(0, fwidth - n)` as `MAX(n, fwidth) - n` for various `n`. This change quiets some GCC warnings. * Change some local variables that cannot take sensible negative values from signed to unsigned. This quiets GCC warnings about potential signed overflow. * In a handful of instances, check the range of a signed integer before increasing/decreasing it, just in case the increase/decrease overflows. This quiets a handful of GCC signed-overflow warnings. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Hyperslabs can be reworked inside several H5S callbacks, making H5S_t non-const in some places where it is marked const. This change switches these incorrectly const H5S_t pointer parameters and variables to non-const where appropriate.
jhendersonHDF
requested review from
byrnHDF,
bmribler,
ChristopherHogan,
gnuoyd,
derobins,
jrmainzer,
fortnern,
soumagne and
vchoi-hdfgroup
as code owners
May 2, 2022 23:58
jhendersonHDF
force-pushed
the
hdf5_1_12_warnings_fixes
branch
from
May 2, 2022 23:59
32a7b78
to
d060288
Compare
byrnHDF
approved these changes
May 3, 2022
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.
Cherry picks of recent warnings fixes. Also cherry picks of
3a2b3bb
and
7cf5c29
since those are needed in conjunction.