summaryrefslogtreecommitdiffstats
path: root/Python/specialize.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-03-25 20:43:51 (GMT)
committerGitHub <noreply@github.com>2024-03-25 20:43:51 (GMT)
commit23e4f80ce2a2bac50acd1785e791316d5b578b8d (patch)
tree2a0937f7b00d32a657aa745f0c1b2fe4d730a59c /Python/specialize.c
parent507896d97dcff2d7999efa264b29d9003c525c49 (diff)
downloadcpython-23e4f80ce2a2bac50acd1785e791316d5b578b8d.zip
cpython-23e4f80ce2a2bac50acd1785e791316d5b578b8d.tar.gz
cpython-23e4f80ce2a2bac50acd1785e791316d5b578b8d.tar.bz2
A few minor tweaks to get stats working and compiling cleanly. (#117219)
Fixes a compilation error when configured with `--enable-pystats`, an array size issue, and an unused variable.
Diffstat (limited to 'Python/specialize.c')
-rw-r--r--Python/specialize.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/specialize.c b/Python/specialize.c
index 801ab1f..c1edf88 100644
--- a/Python/specialize.c
+++ b/Python/specialize.c
@@ -250,7 +250,6 @@ print_optimization_stats(FILE *out, OptimizationStats *stats)
fprintf(out, "Optimizer remove globals builtins changed: %" PRIu64 "\n", stats->remove_globals_builtins_changed);
fprintf(out, "Optimizer remove globals incorrect keys: %" PRIu64 "\n", stats->remove_globals_incorrect_keys);
- const char* const* names;
for (int i = 0; i <= MAX_UOP_ID; i++) {
if (stats->opcode[i].execution_count) {
fprintf(out, "uops[%s].execution_count : %" PRIu64 "\n", _PyUOpName(i), stats->opcode[i].execution_count);