From: Mohammad Miadh Angkad Date: Wed, 14 Jan 2026 20:37:13 +0000 (+0800) Subject: GH-143842: Make optimizer color table static (GH-143846) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=499706b843144b1bae3a4712ac8d75a4eb337ecf;p=thirdparty%2FPython%2Fcpython.git GH-143842: Make optimizer color table static (GH-143846) --- diff --git a/Misc/NEWS.d/next/Build/2026-01-15-03-36-16.gh-issue-143842.EZLutl.rst b/Misc/NEWS.d/next/Build/2026-01-15-03-36-16.gh-issue-143842.EZLutl.rst new file mode 100644 index 000000000000..4d5b11464635 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2026-01-15-03-36-16.gh-issue-143842.EZLutl.rst @@ -0,0 +1,2 @@ +Prevent static builds from clashing with curses by making the optimizer +COLORS table static. diff --git a/Python/optimizer.c b/Python/optimizer.c index a2a1feb8b9e1..c5f47d7f22c3 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -2009,7 +2009,7 @@ find_line_number(PyCodeObject *code, _PyExecutorObject *executor) #define BLACK "#000000" #define LOOP "#00c000" -const char *COLORS[10] = { +static const char *COLORS[10] = { "9", "8", "7",