Irit Katriel <[email protected]> added the comment:
Following discussion on python-dev I added a compile-time deprecation warning.
With this, and after reverting PR27683 I get the warning below. The build
succeeds and the tests pass.
% make -s -j2
Objects/frameobject.c:622:5: warning: 'UsingDeprecatedTrashcanMacro' is
deprecated [-Wdeprecated-declarations]
Py_TRASHCAN_SAFE_BEGIN(f)
^
./Include/cpython/object.h:545:9: note: expanded from macro
'Py_TRASHCAN_SAFE_BEGIN'
UsingDeprecatedTrashcanMacro cond=1; \
^
./Include/cpython/object.h:542:1: note: 'UsingDeprecatedTrashcanMacro' has been
explicitly marked deprecated here
Py_DEPRECATED(3.11) typedef int UsingDeprecatedTrashcanMacro;
^
./Include/pyport.h:509:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue44874>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com