Skip to content
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

Fix minor Windows warnings #5021

Merged
merged 2 commits into from
Oct 28, 2024
Merged

Conversation

derobins
Copy link
Member

  • Cast away a signed/unsigned issue in H5HFhuge.c
  • Use our platform-independent POSIX types in external_common.c and h5test.c
  • Replace a memset() call with a (const) array initializer in h5test.c
  • Fix an unused done: target in h5diff

* Cast away a signed/unsigned issue in H5HFhuge.c
* Use our platform-independent POSIX types in external_common.c
  and h5test.c
* Replace a memset() call with a (const) array initializer in h5test.c
* Fix an unused done: target in h5diff
@derobins derobins added Priority - 3. Low 🔽 Code cleanup, small feature change requests, etc. Component - C Library Core C library issues (usually in the src directory) Component - Tools Command-line tools like h5dump, includes high-level tools Component - Testing Code in test or testpar directories, GitHub workflows Type - Improvement Improvements that don't add a new feature or functionality labels Oct 28, 2024
@derobins
Copy link
Member Author

Fixes:

  • src\H5HFhuge.c(195): warning C4018: '<=': signed/unsigned mismatch
  • test\external_common.c(65): warning C4267: 'function': conversion from 'size_t' to 'unsigned int', possible loss of data
  • test\external_common.c(102): warning C4267: 'function': conversion from 'size_t' to 'unsigned int', possible loss of data
  • test\h5test.c(800): warning C4090: 'function': different 'const' qualifiers
  • test\h5test.c(1650): warning C4267: 'function': conversion from 'size_t' to 'unsigned int', possible loss of data
  • tools\lib\h5diff.c(1284): warning C4102: 'done': unreferenced label

@derobins derobins merged commit 369099d into HDFGroup:develop Oct 28, 2024
brtnfld pushed a commit to brtnfld/hdf5 that referenced this pull request Oct 31, 2024
* Cast away a signed/unsigned issue in H5HFhuge.c
* Use our platform-independent POSIX types in external_common.c
  and h5test.c
* Replace a memset() call with a (const) array initializer in h5test.c
* Fix an unused done: target in h5diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - C Library Core C library issues (usually in the src directory) Component - Testing Code in test or testpar directories, GitHub workflows Component - Tools Command-line tools like h5dump, includes high-level tools Priority - 3. Low 🔽 Code cleanup, small feature change requests, etc. Type - Improvement Improvements that don't add a new feature or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants