]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-88279: Fix compiler warning for using deprecated PySys_SetArgvEx (#92428)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 7 May 2022 18:21:11 +0000 (21:21 +0300)
committerGitHub <noreply@github.com>
Sat, 7 May 2022 18:21:11 +0000 (19:21 +0100)
Python/sysmodule.c

index edd1d1f23fdea9f38f1fce6b3c408279c4787fcb..4f8b4cc17f2c1a6dc6726f37f02273c42e42ed2f 100644 (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