[Python-checkins] gh-88279: Fix compiler warning for using deprecated PySys_SetArgvEx (GH-92428)

miss-islington webhook-mailer at python.org
Sun May 8 00:12:58 EDT 2022


https://github.com/python/cpython/commit/14bd6df0940e005c57745abf550c83f046de9a03
commit: 14bd6df0940e005c57745abf550c83f046de9a03
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-07T21:12:52-07:00
summary:

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

(cherry picked from commit bd030b633f98ea5d9f93ef0105a51d2faf67070d)

Co-authored-by: Serhiy Storchaka <storchaka at gmail.com>

files:
M Python/sysmodule.c

diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index edd1d1f23fdea..4f8b4cc17f2c1 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -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



More information about the Python-checkins mailing list