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

Adds 'unused' hints for MDS io_info parameters #2301

Merged
merged 7 commits into from
Dec 14, 2022

Conversation

derobins
Copy link
Member

No description provided.

@derobins
Copy link
Member Author

This is for sure going to fail the formatting check.

For one of the calls, I opted to use (void) instead of an ATTR_UNUSED macro. We don't have one for "used in debug parallel only" and those macros are already ridiculous.

@derobins
Copy link
Member Author

Once this is merged, I'll fix the GitHub actions that are incorrectly using the default build mode.

src/H5Dchunk.c Outdated Show resolved Hide resolved
src/H5Dchunk.c Outdated
HDassert(io_info);
#else
/* clang-format off */
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wtf? Must be due to the FUNC_ENTER macro.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is less ugly, and I have zero interest in adding to the already-over-complicated ATTR_UNUSED scheme

@derobins derobins merged commit 93938b3 into HDFGroup:develop Dec 14, 2022
derobins added a commit to derobins/hdf5 that referenced this pull request Dec 15, 2022
* Adds 'unused' hints for MDS io_info parameters

* Committing clang-format changes

* Fix issue with formatter

* Committing clang-format changes

* Final fix for formatter

* Committing clang-format changes

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
derobins added a commit that referenced this pull request Dec 16, 2022
* Adds 'unused' hints for MDS io_info parameters

* Committing clang-format changes

* Fix issue with formatter

* Committing clang-format changes

* Final fix for formatter

* Committing clang-format changes

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
brtnfld pushed a commit to brtnfld/hdf5 that referenced this pull request May 17, 2023
* Adds 'unused' hints for MDS io_info parameters

* Committing clang-format changes

* Fix issue with formatter

* Committing clang-format changes

* Final fix for formatter

* Committing clang-format changes

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
@derobins derobins deleted the mds_param_warnings branch March 27, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants