workaround clang-14 bug
[LibreOffice.git] / external / python3 / python-3.3.3-disable-obmalloc.patch.0
blob9549e52af3fbdaa191019ed00204d8a97d895f01
1 --- Objects/obmalloc.c
2 +++ Objects/obmalloc.c
3 @@ -722,8 +722,8 @@
4  
5  #ifdef WITH_PYMALLOC
6  
7 +#define WITH_VALGRIND
8  #ifdef WITH_VALGRIND
9 -#include <valgrind/valgrind.h>
11  /* -1 indicates that we haven't checked that we're running on valgrind yet. */
12  static int running_on_valgrind = -1;
13 @@ -1591,7 +1591,7 @@
14  {
15  #ifdef WITH_VALGRIND
16      if (UNLIKELY(running_on_valgrind == -1)) {
17 -        running_on_valgrind = RUNNING_ON_VALGRIND;
18 +        running_on_valgrind = 1;
19      }
20      if (UNLIKELY(running_on_valgrind)) {
21          return NULL;