From: Neil Schemenauer Date: Tue, 14 Oct 2025 23:34:30 +0000 (-0700) Subject: gh-140126: Fix compile error if --with-assertions is enabled (#140133) X-Git-Tag: v3.15.0a2~440 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e1f43519605b7c54a96aa44d0feed09d2bb1a67;p=thirdparty%2FPython%2Fcpython.git gh-140126: Fix compile error if --with-assertions is enabled (#140133) The `types_world_is_stopped()` function needs to be defined if NDEBUG is not defined. --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 9398bcb29c83..29233c1959c4 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -81,7 +81,7 @@ class object "PyObject *" "&PyBaseObject_Type" #define END_TYPE_DICT_LOCK() Py_END_CRITICAL_SECTION2() -#ifdef Py_DEBUG +#ifndef NDEBUG // Return true if the world is currently stopped. static bool types_world_is_stopped(void)