diff options
author | Victor Stinner <vstinner@python.org> | 2021-05-13 00:27:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 00:27:56 (GMT) |
commit | ec7c09b9bc9a8f333a0295b41ea88986c320448c (patch) | |
tree | 317a3ee7e1c12ddd1d84a07f8eace1eec4f52479 /Python | |
parent | 8ea350ee9055435c4267834cdaf85f1a2d4a1ed1 (diff) | |
download | cpython-ec7c09b9bc9a8f333a0295b41ea88986c320448c.zip cpython-ec7c09b9bc9a8f333a0295b41ea88986c320448c.tar.gz cpython-ec7c09b9bc9a8f333a0295b41ea88986c320448c.tar.bz2 |
bpo-44113: Fix compiler warning in PySys_AddWarnOption() (GH-26084)
Ignore Py_DEPRECATED() warning on purpose.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/sysmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index ac49f78..f1f4492 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -2293,7 +2293,10 @@ PySys_AddWarnOption(const wchar_t *s) unicode = PyUnicode_FromWideChar(s, -1); if (unicode == NULL) return; +_Py_COMP_DIAG_PUSH +_Py_COMP_DIAG_IGNORE_DEPR_DECLS PySys_AddWarnOptionUnicode(unicode); +_Py_COMP_DIAG_POP Py_DECREF(unicode); } |