Skip to content

Commit 099afba

Browse files
committed
define is_unarynegative_const_complex_expr & is_allowed_match_case_binary_expr only on debug builds
1 parent 7c9c69b commit 099afba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Python/ast_opt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,8 @@ is_unarynegative_const_numeric_expr(expr_ty node)
740740
);
741741
}
742742

743+
#ifndef NDEBUG
744+
743745
static bool
744746
is_unarynegative_const_complex_expr(expr_ty node)
745747
{
@@ -772,6 +774,8 @@ is_allowed_match_case_binary_expr(expr_ty node)
772774
);
773775
}
774776

777+
#endif
778+
775779
static int
776780
fold_const_unary_or_complex_expr(expr_ty node, PyArena *ctx_,
777781
_PyASTOptimizeState * Py_UNUSED(state))

0 commit comments

Comments
 (0)