gh-100577: Replace assert(0) with Py_UNREACHABLE in symtable.c (#100579)

This commit is contained in:
Nikita Sobolev 2022-12-28 18:31:53 +03:00 committed by GitHub
parent 457c1f4a19
commit 5e1adb4f88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}