aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-01-29 16:02:51 -0800
committerEric Anholt <[email protected]>2019-01-29 16:02:51 -0800
commit6053c7bb436a4a8cdb63e6015b4b5d87c6723081 (patch)
treecf7200671403f0e788ce549703e9a363e13bd6ef
parent0c05198d6b5ba0fffafd3db410aa839629bb30b7 (diff)
v3d: Fix a release build set-but-unused compiler warning.
-rw-r--r--src/broadcom/cle/v3d_decoder.c3
1 files changed, 2 insertions, 1 deletions
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) {