From e52d3d5f1c355c602072252dc4bc1ef8fc99d5b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20Wasserb=C3=A4ch?= Date: Sat, 17 Sep 2022 13:25:53 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20util/format:=20unused=20variable=20?= =?UTF-8?q?=E2=80=98desc=E2=80=99=20[-Wunused-variable]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only used in debug builds. Signed-off-by: Kai Wasserbäch Reviewed-by: Mihai Preda Part-of: --- src/util/format/u_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/format/u_format.c b/src/util/format/u_format.c index c071250d874..b8100fcd985 100644 --- a/src/util/format/u_format.c +++ b/src/util/format/u_format.c @@ -1354,7 +1354,7 @@ util_format_rgbx_to_rgba(enum pipe_format format) case PIPE_FORMAT_B10G10R10X2_SINT: return PIPE_FORMAT_B10G10R10A2_SINT; default: { - const struct util_format_description *desc = util_format_description(format); + ASSERTED const struct util_format_description *desc = util_format_description(format); /* Assert that the format doesn't contain X instead of A. */ assert(desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS ||