From a75c6cca542142b2b2354bf436377f20b4aa9bf0 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 10 May 2024 09:36:24 +0200 Subject: [PATCH] render/color: fix return value type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../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; | ^~~~~ --- render/color_lcms2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/color_lcms2.c b/render/color_lcms2.c index ecef9826..fae4fb6a 100644 --- a/render/color_lcms2.c +++ b/render/color_lcms2.c @@ -23,7 +23,7 @@ struct wlr_color_transform *wlr_color_transform_init_linear_to_icc( cmsContext ctx = cmsCreateContext(NULL, NULL); if (ctx == NULL) { wlr_log(WLR_ERROR, "cmsCreateContext failed"); - return false; + return NULL; } cmsSetLogErrorHandlerTHR(ctx, handle_lcms_error);