diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-05-08 04:12:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 04:12:52 (GMT) |
commit | 14bd6df0940e005c57745abf550c83f046de9a03 (patch) | |
tree | e3d61ddcdbe02679c7c60ac2723277afa83aa89b /Python | |
parent | 565a5a32962c16aa7d494002b625d308d044a72f (diff) | |
download | cpython-14bd6df0940e005c57745abf550c83f046de9a03.zip cpython-14bd6df0940e005c57745abf550c83f046de9a03.tar.gz cpython-14bd6df0940e005c57745abf550c83f046de9a03.tar.bz2 |
gh-88279: Fix compiler warning for using deprecated PySys_SetArgvEx (GH-92428)
(cherry picked from commit bd030b633f98ea5d9f93ef0105a51d2faf67070d)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python')
-rw-r--r-- | Python/sysmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index edd1d1f..4f8b4cc 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 |