bpo-44113: Fix compiler warning in PySys_AddWarnOption() (GH-26084)
Ignore Py_DEPRECATED() warning on purpose.
This commit is contained in:
@@ -2293,7 +2293,10 @@ PySys_AddWarnOption(const wchar_t *s)
|
|||||||
unicode = PyUnicode_FromWideChar(s, -1);
|
unicode = PyUnicode_FromWideChar(s, -1);
|
||||||
if (unicode == NULL)
|
if (unicode == NULL)
|
||||||
return;
|
return;
|
||||||
|
_Py_COMP_DIAG_PUSH
|
||||||
|
_Py_COMP_DIAG_IGNORE_DEPR_DECLS
|
||||||
PySys_AddWarnOptionUnicode(unicode);
|
PySys_AddWarnOptionUnicode(unicode);
|
||||||
|
_Py_COMP_DIAG_POP
|
||||||
Py_DECREF(unicode);
|
Py_DECREF(unicode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user