mirror of
https://github.com/python/cpython.git
synced 2025-11-24 12:20:42 +00:00
[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:
parent
43d8f527c9
commit
0fc49bed80
1 changed files with 1 additions and 4 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue