Skip to content

Commit 14bd6df

Browse files
gh-88279: Fix compiler warning for using deprecated PySys_SetArgvEx (GH-92428)
(cherry picked from commit bd030b6) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 565a5a3 commit 14bd6df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/sysmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3302,7 +3302,10 @@ PySys_SetArgvEx(int argc, wchar_t **argv, int updatepath)
33023302
void
33033303
PySys_SetArgv(int argc, wchar_t **argv)
33043304
{
3305+
_Py_COMP_DIAG_PUSH
3306+
_Py_COMP_DIAG_IGNORE_DEPR_DECLS
33053307
PySys_SetArgvEx(argc, argv, Py_IsolatedFlag == 0);
3308+
_Py_COMP_DIAG_POP
33063309
}
33073310

33083311
/* Reimplementation of PyFile_WriteString() no calling indirectly

0 commit comments

Comments
 (0)