intel/gen_decoder: Fix unused-but-set-variable warning
authorKai Wasserbäch <kai@dev.carbon-project.org>
Sat, 28 Sep 2019 16:58:57 +0000 (18:58 +0200)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 7 Nov 2019 00:32:55 +0000 (11:32 +1100)
commitddc588ff71ef9fdb87ef476f91bc716383dbeb77
treeccbb14a5ea6b62856074e46d8a77b7f51cd46836
parentacfea09dbd795fdf42cb5543a922e0cb90aa4969
intel/gen_decoder: Fix unused-but-set-variable warning

This commit fixes the following warning:
../src/intel/common/gen_decoder.c: In function ‘gen_spec_load_from_path’:
../src/intel/common/gen_decoder.c:741:11: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]
  741 |    size_t len, filename_len = strlen(path) + 20;
      |           ^~~

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