mirror of https://github.com/python/cpython
bpo-44113: Fix compiler warning in PySys_AddWarnOption() (GH-26084)
Ignore Py_DEPRECATED() warning on purpose.
This commit is contained in:
parent
8ea350ee90
commit
ec7c09b9bc
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue