From: Rogdham <3994389+Rogdham@users.noreply.github.com> Date: Mon, 4 Aug 2025 01:36:12 +0000 (+0200) Subject: gh-132983: Use ``Py_UNREACHABLE`` in ``_zstd_load_impl()`` (#137320) X-Git-Tag: v3.15.0a1~792 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57eab1b8f78039142d58d207d39ae734d67952cf;p=thirdparty%2FPython%2Fcpython.git gh-132983: Use ``Py_UNREACHABLE`` in ``_zstd_load_impl()`` (#137320) --- diff --git a/Modules/_zstd/decompressor.c b/Modules/_zstd/decompressor.c index b00ee05d2f51..026d39f68291 100644 --- a/Modules/_zstd/decompressor.c +++ b/Modules/_zstd/decompressor.c @@ -157,10 +157,7 @@ _zstd_load_impl(ZstdDecompressor *self, ZstdDict *zd, zd->dict_len); } else { - /* Impossible code path */ - PyErr_SetString(PyExc_SystemError, - "load_d_dict() impossible code path"); - return -1; + Py_UNREACHABLE(); } /* Check error */