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

Squash clang-14 warnings in OPAL #12254

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

devreal
Copy link
Contributor

@devreal devreal commented Jan 19, 2024

  • Set but unused rc variable
  • Shadowed fifo variable
  • Format string warning (void* vs char*)

@@ -357,7 +357,7 @@ static int smcuda_btl_first_time_init(mca_btl_smcuda_t *smcuda_btl, int32_t my_s
"btl:smcuda: host_register address=%p, size=%d",
mca_btl_smcuda_component.sm_mpool_base, (int) res->size);
if (0 != strcmp(opal_accelerator_base_selected_component.base_version.mca_component_name, "null")) {
rc = opal_accelerator.host_register(MCA_ACCELERATOR_NO_DEVICE_ID, mca_btl_smcuda_component.sm_mpool_base, res->size);
rc = opal_accelerator.host_register(MCA_ACCELERATOR_NO_DEVICE_ID, mca_btl_smcuda_component.sm_mpool_base, res->size);
if (OPAL_UNLIKELY(OPAL_SUCCESS != rc)) {
Copy link
Member

Choose a reason for hiding this comment

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

why is this not a valid usage for rc ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is. The change here is a trailing whitespace. I can remove that

- Set but unused rc
- Shadowed fifo variable
- Format string warning (void* vs char*)

Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
@devreal devreal force-pushed the opal_compiler_warnings branch from a292387 to 8c374f0 Compare January 23, 2024 16:39
@wenduwan
Copy link
Contributor

Discussed during yesterday's syncup. Good to merge now.

@wenduwan wenduwan merged commit 4544311 into open-mpi:main Jan 24, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants