-
Notifications
You must be signed in to change notification settings - Fork 22
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
Parameter Conflict: PMIx_Get vs PMIx_Get_nb #420
Comments
Further info: one concern I have with the PMIx_Get signature's use of
will return a warning:
because PMIx_Get uses On the other hand, use of Does anyone have thoughts on this? The change is going to cause pain either way we go. I believe PMIx_Get is used far more than PMIx_Get_nb, so in some ways using the PMIx_Get version is likely to create the smaller amount of code change, if that is a consideration. |
Dug a little deeper. It seems that OpenPMIx shows both APIs as |
#488 implemented this errata backward, we need to rework this for both v4.2 and v5.0 |
Correct fix for #420: pmix_key_t param in pmix_get
(cherry picked from commit 491c31f)
PMIx_Get has a signature that includes
const pmix_key_t key
.PMIx_Get_nb has a signature that includes
const char key[]
for the same argument.The problem is that these conflict in the eyes of today's picky compilers such as gcc12, which will generate a warning if:
char*
string to PMIx_Get, but not if you pass that same string to PMIx_Get_nb.pmix_key_t
to PMIx_Get_nb, but not if you pass that same key to PMIx_GetSo which is it supposed to be?
The text was updated successfully, but these errors were encountered: