From 95b4292e3b0dc95d318e046fc6c84edab979e644 Mon Sep 17 00:00:00 2001 From: AN Long Date: Sun, 1 Feb 2026 12:04:44 +0900 Subject: [PATCH] Fix unused variable 'COLORS' warning in optimizer.c --- Python/optimizer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Python/optimizer.c b/Python/optimizer.c index b8208c7d888e38..2802ef17dbf5c2 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) {