From bd030b633f98ea5d9f93ef0105a51d2faf67070d Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 7 May 2022 21:21:11 +0300 Subject: gh-88279: Fix compiler warning for using deprecated PySys_SetArgvEx (#92428) --- Python/sysmodule.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Python') diff --git a/Python/sysmodule.c b/Python/sysmodule.c index edd1d1f23f..4f8b4cc17f 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 -- cgit v1.2.1