From: Nikita Sobolev Date: Wed, 28 Dec 2022 15:31:53 +0000 (+0300) Subject: gh-100577: Replace `assert(0)` with `Py_UNREACHABLE` in `symtable.c` (#100579) X-Git-Tag: v3.12.0a4~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e1adb4f8861f2a5969952d24c8ad0ce8ec0a8ec;p=thirdparty%2FPython%2Fcpython.git gh-100577: Replace `assert(0)` with `Py_UNREACHABLE` in `symtable.c` (#100579) --- diff --git a/Python/symtable.c b/Python/symtable.c index fb2bb7d83835..3c130186d0ad 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -1539,7 +1539,7 @@ symtable_extend_namedexpr_scope(struct symtable *st, expr_ty e) /* We should always find either a FunctionBlock, ModuleBlock or ClassBlock and should never fall to this case */ - assert(0); + Py_UNREACHABLE(); return 0; }