gh-132983: Use `Py_UNREACHABLE in _zstd_load_impl()` (#137320)

This commit is contained in:
Rogdham 2025-08-04 03:36:12 +02:00 committed by GitHub
parent 406dc714f6
commit 57eab1b8f7
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 */