Skip to content

Commit 95b4292

Browse files
committed
Fix unused variable 'COLORS' warning in optimizer.c
1 parent ccbe41e commit 95b4292

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/optimizer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,6 +1993,8 @@ find_line_number(PyCodeObject *code, _PyExecutorObject *executor)
19931993
#define BLACK "#000000"
19941994
#define LOOP "#00c000"
19951995

1996+
#ifdef Py_STATS
1997+
19961998
static const char *COLORS[10] = {
19971999
"9",
19982000
"8",
@@ -2005,8 +2007,6 @@ static const char *COLORS[10] = {
20052007
"1",
20062008
WHITE,
20072009
};
2008-
2009-
#ifdef Py_STATS
20102010
const char *
20112011
get_background_color(_PyUOpInstruction const *inst, uint64_t max_hotness)
20122012
{

0 commit comments

Comments
 (0)