From 6053c7bb436a4a8cdb63e6015b4b5d87c6723081 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 29 Jan 2019 16:02:51 -0800 Subject: [PATCH] v3d: Fix a release build set-but-unused compiler warning. --- src/broadcom/cle/v3d_decoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/broadcom/cle/v3d_decoder.c b/src/broadcom/cle/v3d_decoder.c index 373a1d99644..3795029fe62 100644 --- a/src/broadcom/cle/v3d_decoder.c +++ b/src/broadcom/cle/v3d_decoder.c @@ -651,7 +651,8 @@ v3d_spec_load(const struct v3d_device_info *devinfo) struct parser_context ctx; void *buf; uint8_t *text_data = NULL; - uint32_t text_offset = 0, text_length = 0, total_length; + uint32_t text_offset = 0, text_length = 0; + MAYBE_UNUSED uint32_t total_length; for (int i = 0; i < ARRAY_SIZE(genxml_files_table); i++) { if (i != 0) { -- 2.30.2