v3d: Fix a release build set-but-unused compiler warning.

This commit is contained in:
Eric Anholt 2019-01-29 16:02:51 -08:00
parent 0c05198d6b
commit 6053c7bb43
1 changed files with 2 additions and 1 deletions

View File

@ -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) {