From: Eric Anholt Date: Wed, 30 Jan 2019 00:02:51 +0000 (-0800) Subject: v3d: Fix a release build set-but-unused compiler warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6053c7bb436a4a8cdb63e6015b4b5d87c6723081;p=mesa.git v3d: Fix a release build set-but-unused compiler warning. --- 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) {