From: AN Long Date: Sun, 1 Feb 2026 04:01:45 +0000 (+0900) Subject: Fix unused variable 'COLORS' warning in optimizer.c (#144373) X-Git-Tag: v3.15.0a6~108 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db61f622c6e3185fc499e69fc933f8cd42738fd3;p=thirdparty%2FPython%2Fcpython.git Fix unused variable 'COLORS' warning in optimizer.c (#144373) --- diff --git a/Python/optimizer.c b/Python/optimizer.c index b8208c7d888e..2802ef17dbf5 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -1993,6 +1993,8 @@ find_line_number(PyCodeObject *code, _PyExecutorObject *executor) #define BLACK "#000000" #define LOOP "#00c000" +#ifdef Py_STATS + static const char *COLORS[10] = { "9", "8", @@ -2005,8 +2007,6 @@ static const char *COLORS[10] = { "1", WHITE, }; - -#ifdef Py_STATS const char * get_background_color(_PyUOpInstruction const *inst, uint64_t max_hotness) {