From b80720acb13e1014aea89e6bd25f22d43df85356 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 29 Apr 2021 22:47:35 -0500 Subject: [PATCH] intel/isl: Fix isl_color_value_unpack to match the prototype MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The prototype uses a pointer and the actual function definition had an array. For some reason, GCC never complained about this until GCC 11. This fixes a compile warning when building with GCC 11. Fixes: 09ced6542049 "intel/isl: Add format conversion code" Reviewed-by: Tapani Pälli Part-of: --- src/intel/isl/isl_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/isl/isl_format.c b/src/intel/isl/isl_format.c index 95d5e51b7f7..7b9800076f0 100644 --- a/src/intel/isl/isl_format.c +++ b/src/intel/isl/isl_format.c @@ -1318,7 +1318,7 @@ unpack_channel(union isl_color_value *value, void isl_color_value_unpack(union isl_color_value *value, enum isl_format format, - const uint32_t data_in[4]) + const uint32_t *data_in) { const struct isl_format_layout *fmtl = isl_format_get_layout(format); assert(fmtl->colorspace == ISL_COLORSPACE_LINEAR ||