Some APIs including PyUnicode_AsUnicode had not been marked as deprecated. But I marked them deprecated yesterday.
Macros like PyUnicode_AS_UNICODE will produce warning because they use PyUnicode_AsUnicode internally.
So please try the master branch.
Regards,
On Thu, Jun 18, 2020 at 4:12 AM Barry Scott barry@barrys-emacs.org wrote:
On 16 Jun 2020, at 13:56, Victor Stinner vstinner@python.org wrote:
You use -Werror to treat compiler warnings as errors. In GCC, __attribute__((__deprecated__)) emits a compiler warning.
That only deals with functions. I want the macros and typedefs to vanish.
I know I'm using Py_UNICODE for example and -Werror does not tell me I am using a deprecated macro.
Barry
Victor
Le mar. 16 juin 2020 à 13:11, Barry Scott
mailto:barry@barrys-emacs.org> a écrit : I have been following the discussions on removing deprecated macros and functions from the C API. I checked my code, PyCXX and have a coupld of issues that is easy to fix. But I may have missed something.
What would help me is to be able to build extensions with all the deprecated pieces of the C API removed.
A bit like the way the limited C API works via the -DPy_LIMITED_API=0x03040000 option.
What do you think?
Barry
capi-sig mailing list -- capi-sig@python.org To unsubscribe send an email to capi-sig-leave@python.org https://mail.python.org/mailman3/lists/capi-sig.python.org/ Member address: vstinner@python.org mailto:vstinner@python.org
-- Night gathers, and now my watch begins. It shall not end until my death.
capi-sig mailing list -- capi-sig@python.org To unsubscribe send an email to capi-sig-leave@python.org https://mail.python.org/mailman3/lists/capi-sig.python.org/ Member address: songofacandy@gmail.com
-- Inada Naoki songofacandy@gmail.com