mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 08:32:30 +00:00
render/color: fix return value type
../render/color_lcms2.c: In function ‘wlr_color_transform_init_linear_to_icc’: ../render/color_lcms2.c:26:24: error: incompatible types when returning type ‘_Bool’ but ‘struct wlr_color_transform *’ was expected 26 | return false; | ^~~~~
This commit is contained in:
parent
fe429b2463
commit
a75c6cca54
@ -23,7 +23,7 @@ struct wlr_color_transform *wlr_color_transform_init_linear_to_icc(
|
|||||||
cmsContext ctx = cmsCreateContext(NULL, NULL);
|
cmsContext ctx = cmsCreateContext(NULL, NULL);
|
||||||
if (ctx == NULL) {
|
if (ctx == NULL) {
|
||||||
wlr_log(WLR_ERROR, "cmsCreateContext failed");
|
wlr_log(WLR_ERROR, "cmsCreateContext failed");
|
||||||
return false;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
cmsSetLogErrorHandlerTHR(ctx, handle_lcms_error);
|
cmsSetLogErrorHandlerTHR(ctx, handle_lcms_error);
|
||||||
|
Loading…
Reference in New Issue
Block a user