PySys_SetArgv is deprecated in 3.11

The initialization API was updated in 3.8.

"This API is kept for backward compatibility:
setting PyConfig.argv and PyConfig.parse_argv should be used instead,
see Python Initialization Configuration."
This commit is contained in:
Richard Cohen 2023-03-29 11:21:10 +01:00
parent cfc0890d5d
commit 8b25832ba0

View File

@ -57,6 +57,11 @@ libgncmod_python_gnc_module_description(void)
return g_strdup("An embedded Python interpreter");
}
#if PY_VERSION_HEX >= 0x030b0000
// PySys_SetArgv is deprecated in 3.11
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
#endif
int
libgncmod_python_gnc_module_init(int refcount)
{