gh-88279: Fix compiler warning for using deprecated PySys_SetArgvEx (#92428)

This commit is contained in:
Serhiy Storchaka 2022-05-07 21:21:11 +03:00 committed by GitHub
parent 0924b95f6e
commit bd030b633f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3302,7 +3302,10 @@ PySys_SetArgvEx(int argc, wchar_t **argv, int updatepath)
void
PySys_SetArgv(int argc, wchar_t **argv)
{
_Py_COMP_DIAG_PUSH
_Py_COMP_DIAG_IGNORE_DEPR_DECLS
PySys_SetArgvEx(argc, argv, Py_IsolatedFlag == 0);
_Py_COMP_DIAG_POP
}
/* Reimplementation of PyFile_WriteString() no calling indirectly