-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesbuildThe build process and cross-buildThe build process and cross-buildextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-free-threadingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
I get the following warnings since #128886, which was backported to 3.13.
./Modules/_hashopenssl.c:416:69: warning: passing 'const EVP_MD *' (aka 'const struct evp_md_st *') to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
416 | other_digest = _Py_atomic_exchange_ptr(&entry->evp, digest);
| ^~~~~~
./Include/cpython/pyatomic_gcc.h:194:42: note: passing argument to parameter 'value' here
194 | _Py_atomic_exchange_ptr(void *obj, void *value)
| ^
./Modules/_hashopenssl.c:428:80: warning: passing 'const EVP_MD *' (aka 'const struct evp_md_st *') to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
428 | other_digest = _Py_atomic_exchange_ptr(&entry->evp_nosecurity, digest);
| ^~~~~~
./Include/cpython/pyatomic_gcc.h:194:42: note: passing argument to parameter 'value' here
194 | _Py_atomic_exchange_ptr(void *obj, void *value)
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesbuildThe build process and cross-buildThe build process and cross-buildextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-free-threadingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error