Message399754
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__))
^ |
|
Date |
User |
Action |
Args |
2021-08-17 14:47:06 | iritkatriel | set | recipients:
+ iritkatriel, lukasz.langa, pablogsal |
2021-08-17 14:47:06 | iritkatriel | set | messageid: <1629211626.67.0.289793547693.issue44874@roundup.psfhosted.org> |
2021-08-17 14:47:06 | iritkatriel | link | issue44874 messages |
2021-08-17 14:47:06 | iritkatriel | create | |
|