Skip to content

Commit

Permalink
GH-90230: Fix warnings and failures with --enable-pystats (GH-96622)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandtbucher authored Sep 9, 2022
1 parent 11e3548 commit b4954b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix compiler warnings and test failures when building with
``--enable-pystats``.
2 changes: 2 additions & 0 deletions Python/specialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ _Py_GetSpecializationStats(void) {
err += add_stat_dict(stats, BINARY_OP, "binary_op");
err += add_stat_dict(stats, COMPARE_OP, "compare_op");
err += add_stat_dict(stats, UNPACK_SEQUENCE, "unpack_sequence");
err += add_stat_dict(stats, FOR_ITER, "for_iter");
if (err < 0) {
Py_DECREF(stats);
return NULL;
Expand Down Expand Up @@ -975,6 +976,7 @@ load_attr_fail_kind(DescriptorClassification kind)
case MUTABLE:
return SPEC_FAIL_ATTR_MUTABLE_CLASS;
case GETSET_OVERRIDDEN:
case GETATTRIBUTE_IS_PYTHON_FUNCTION:
return SPEC_FAIL_OVERRIDDEN;
case BUILTIN_CLASSMETHOD:
return SPEC_FAIL_ATTR_BUILTIN_CLASS_METHOD;
Expand Down

0 comments on commit b4954b1

Please sign in to comment.