v3d: Fix a release build set-but-unused compiler warning.
authorEric Anholt <eric@anholt.net>
Wed, 30 Jan 2019 00:02:51 +0000 (16:02 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 30 Jan 2019 00:02:51 +0000 (16:02 -0800)
src/broadcom/cle/v3d_decoder.c

index 373a1d996442e1bf52b642912e19e94f743d60eb..3795029fe62ba49a2b014a9ccad35cc63465b4bc 100644 (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) {