]> git.ipfire.org Git - thirdparty/samba.git/commit
pylibsmb: do not use obsolete PyEval_InitThreads() for Python > 3.6
authorDmitry Antipov <dantipov@cloudlinux.com>
Wed, 8 Feb 2023 08:59:59 +0000 (11:59 +0300)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 12 Mar 2025 04:36:21 +0000 (04:36 +0000)
commit5e8f998efa54d276d02b90664125a7b577e091b9
treee350cf9f964facd5598e26f05e3439c99c76cb10
parent90c04dd62c108c13b11ead1d4afb023f96a9886d
pylibsmb: do not use obsolete PyEval_InitThreads() for Python > 3.6

Do not use obsolete PyEval_InitThreads() for Python > 3.6:

../../source3/libsmb/pylibsmb.c: In function ‘py_cli_state_setup_mt_ev’:
../../source3/libsmb/pylibsmb.c:271:9: warning: ‘PyEval_InitThreads’ is
deprecated [-Wdeprecated-declarations]
  271 |         PyEval_InitThreads();
      |         ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:95,
                 from ../../source3/libsmb/pylibsmb.c:48:
/usr/include/python3.11/ceval.h:132:37: note: declared here
  132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);

Signed-off-by: Dmitry Antipov <dantipov@cloudlinux.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Wed Mar 12 04:36:21 UTC 2025 on atb-devel-224
source3/libsmb/pylibsmb.c