From: Victor Stinner Date: Fri, 25 Apr 2025 07:28:34 +0000 (+0200) Subject: gh-127604: Only define dump_pointer() if CAN_C_BACKTRACE (#132897) X-Git-Tag: v3.14.0b1~304 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c292f7f56311b305c673415651c919a7633d36cc;p=thirdparty%2FPython%2Fcpython.git gh-127604: Only define dump_pointer() if CAN_C_BACKTRACE (#132897) --- diff --git a/Python/traceback.c b/Python/traceback.c index 0a9f571cac7f..ff8d29fa5207 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -879,12 +879,14 @@ _Py_DumpHexadecimal(int fd, uintptr_t value, Py_ssize_t width) dump_hexadecimal(fd, value, width, 0); } +#ifdef CAN_C_BACKTRACE static void dump_pointer(int fd, void *ptr) { PUTS(fd, "0x"); dump_hexadecimal(fd, (uintptr_t)ptr, sizeof(void*), 1); } +#endif static void dump_char(int fd, char ch)