Skip to content

Commit 5a5f17f

Browse files
pheiduckbrammool
authored andcommitted
patch 9.0.0832: deprecation warning causes build failure
Problem: Deprecation warning causes build failure. Solution: Suppress deprecation warning. (closes #11503)
1 parent 6c3d3e6 commit 5a5f17f

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/if_python3.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@
8181
# define CODEC_ERROR_HANDLER NULL
8282
#endif
8383

84+
// Suppress Python 3.11 depreciations to see useful warnings
85+
#if defined(__clang__) && defined(__clang_major__) && __clang_major__ > 11
86+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
87+
#endif
88+
8489
// Python 3 does not support CObjects, always use Capsules
8590
#define PY_USE_CAPSULE
8691

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
832,
698700
/**/
699701
831,
700702
/**/

0 commit comments

Comments
 (0)