Silence warnings in Clang
diff --git a/src/_decoder.pyx b/src/_decoder.pyx
index f5ca865..ab14abe 100644
--- a/src/_decoder.pyx
+++ b/src/_decoder.pyx
@@ -782,7 +782,7 @@
elif kind == PyUnicode_4BYTE_KIND:
return _decode_ucs4(PyUnicode_4BYTE_DATA(data), length, maxdepth, some)
else:
- pass # impossible
+ __builtin_unreachable()
cdef object _decode_buffer(Py_buffer &view, int32_t wordlength,
@@ -801,6 +801,7 @@
length = view.len // 4
else:
_raise_illegal_wordlength(wordlength)
+ __builtin_unreachable()
return decoder(view.buf, length, maxdepth, some)
diff --git a/src/_imports.pyx b/src/_imports.pyx
index 790ad4e..8586992 100644
--- a/src/_imports.pyx
+++ b/src/_imports.pyx
@@ -178,6 +178,7 @@
cdef extern from * nogil:
boolean expect '__builtin_expect'(boolean actual, boolean expected)
+ void __builtin_unreachable()
cdef type Decimal, Mapping, IOBase