intel/decoder: mark total_length as MAYBE_UNUSED in gen_spec_load
authorKai Wasserbäch <kai@dev.carbon-project.org>
Sat, 18 Aug 2018 11:16:15 +0000 (13:16 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 20 Aug 2018 10:08:52 +0000 (11:08 +0100)
commit5fab32ddad8b32c4a05517c43623653f8634c4d9
treedb054e41320d1222a014e5acde2da33d0c4e4c8a
parent4228e052b32ed6d27df03abc817961b06f0b377f
intel/decoder: mark total_length as MAYBE_UNUSED in gen_spec_load

Only used, when asserts are enabled.

Fixes an unused-variable warning with GCC 8:
 ../../../src/intel/common/gen_decoder.c: In function 'gen_spec_load':
 ../../../src/intel/common/gen_decoder.c:535:47: warning: variable 'total_length' set but not used [-Wunused-but-set-variable]
     uint32_t text_offset = 0, text_length = 0, total_length;
                                                ^~~~~~~~~~~~

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_decoder.c