[3.14] gh-132983: Use `Py_UNREACHABLE in _zstd_load_impl()` (GH-137320) (#137360)

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2025-08-07 17:38:15 +02:00 committed by GitHub
parent 43d8f527c9
commit 0fc49bed80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 */