]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
_ctypes callbacks.c uses _Py_COMP_DIAG_IGNORE_DEPR_DECLS (#105732)
authorVictor Stinner <vstinner@python.org>
Wed, 14 Jun 2023 10:12:25 +0000 (12:12 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 10:12:25 +0000 (12:12 +0200)
commitfb655e0c4581ca4bed80db0a083884b29fe142d2
tree25d9c74a182505950da3ccad42efc4c061743e1d
parent5cdd5ba49db10f05e204e7a49ce184222a93dce8
_ctypes callbacks.c uses _Py_COMP_DIAG_IGNORE_DEPR_DECLS (#105732)

Replace #pragma with _Py_COMP_DIAG_PUSH,
_Py_COMP_DIAG_IGNORE_DEPR_DECLS and _Py_COMP_DIAG_POP to ease Python
maintenance. Also add a comment explaining why callbacks.c ignores a
deprecation warning.
Modules/_ctypes/callbacks.c