mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-23 15:20:33 +03:00
fix goto labels for clang
This commit is contained in:
parent
eeaecb4535
commit
24b63ad7df
|
@ -373,9 +373,10 @@ _jxl_decoder_new(PyObject *self, PyObject *args) {
|
||||||
|
|
||||||
// on success we should never reach here
|
// on success we should never reach here
|
||||||
|
|
||||||
end:
|
|
||||||
// set error message
|
// set error message
|
||||||
char err_msg[128];
|
char err_msg[128];
|
||||||
|
|
||||||
|
end:
|
||||||
snprintf(err_msg, 128,
|
snprintf(err_msg, 128,
|
||||||
"could not create decoder object. libjxl call: %s returned: %d",
|
"could not create decoder object. libjxl call: %s returned: %d",
|
||||||
jxl_call_name, decp->status);
|
jxl_call_name, decp->status);
|
||||||
|
@ -477,11 +478,12 @@ _jxl_decoder_get_next(PyObject *self) {
|
||||||
Py_DECREF(bytes);
|
Py_DECREF(bytes);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
end:
|
|
||||||
// we also shouldn't reach here if frame read was ok
|
// we also shouldn't reach here if frame read was ok
|
||||||
|
|
||||||
// set error message
|
// set error message
|
||||||
char err_msg[128];
|
char err_msg[128];
|
||||||
|
|
||||||
|
end:
|
||||||
snprintf(err_msg, 128,
|
snprintf(err_msg, 128,
|
||||||
"could not read frame. libjxl call: %s returned: %d",
|
"could not read frame. libjxl call: %s returned: %d",
|
||||||
jxl_call_name, decp->status);
|
jxl_call_name, decp->status);
|
||||||
|
@ -490,7 +492,7 @@ _jxl_decoder_get_next(PyObject *self) {
|
||||||
end_with_custom_error:
|
end_with_custom_error:
|
||||||
|
|
||||||
// no need to deallocate anything here
|
// no need to deallocate anything here
|
||||||
// user can just igonre error
|
// user can just ignore error
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user