From 99cb1921c5103930705f4d17b41722c75061ac55 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 6 May 2022 14:20:16 +0200 Subject: [PATCH] gh-88279: Fix compiler warning in PySys_SetArgv() Ignore the deprecation of PySys_SetArgvEx(). --- Python/sysmodule.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Python/sysmodule.c b/Python/sysmodule.c index edd1d1f23fdea9f..4170881e3ba56f2 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