You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In main and v5.0.x, the following concerning compiler warnings are emitted for the rdma OSC component:
CC osc_rdma_accumulate.lo
osc_rdma_accumulate.c:179:22: warning: assigning to 'void *' from 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
compare_copy = compare_addr;
^ ~~~~~~~~~~~~
osc_rdma_accumulate.c:865:41: warning: passing 'const void *' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
compare_copy, compare_addr, len, MCA_ACCELERATOR_TRANSFER_DTOH);
^~~~~~~~~~~~
osc_rdma_accumulate.c:878:14: warning: passing 'const void *' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
free(compare_copy);
^~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:47:18: note: passing argument to parameter here
void free(void *);
^
3 warnings generated.
I generated these warnings with clang 15 on macOS Sonoma 14.1.1, but I'm betting that similar warnings will be emitted on other OSs / compilers / versions.
Note that I did fix some other compiler warnings in the rdma OSC component in #12129; hence, the warnings above are what are left after fixing those other warnings.
These warnings seem serious, but I don't grok the code well enough to properly assess and/or fix them. I tried a few simple things, but that led down a rabbit hole of const-related side issues. It will probably be better for someone who already understands what this code is meant to be doing to have a look at these warnings.
Can someone have a look?
The text was updated successfully, but these errors were encountered:
In
main
andv5.0.x
, the following concerning compiler warnings are emitted for therdma
OSC component:I generated these warnings with clang 15 on macOS Sonoma 14.1.1, but I'm betting that similar warnings will be emitted on other OSs / compilers / versions.
Note that I did fix some other compiler warnings in the
rdma
OSC component in #12129; hence, the warnings above are what are left after fixing those other warnings.These warnings seem serious, but I don't grok the code well enough to properly assess and/or fix them. I tried a few simple things, but that led down a rabbit hole of
const
-related side issues. It will probably be better for someone who already understands what this code is meant to be doing to have a look at these warnings.Can someone have a look?
The text was updated successfully, but these errors were encountered: