summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl.c
diff options
context:
space:
mode:
authorGrazvydas Ignotas <[email protected]>2016-04-16 04:00:14 +0300
committerIan Romanick <[email protected]>2016-04-25 12:23:28 +0200
commitff48375a164b8bd07882481c2f6caf3d8f1f5617 (patch)
treed7e80ce595941b5211acc88d80c00ed7481dee38 /src/intel/isl/isl.c
parent29d2c0e9e6c545e5182c8da83ef4ca4a27d77388 (diff)
isl: fix warnings in release build
Mark variables MAYBE_UNUSED to avoid unused-but-set-variable warnings in release build. Signed-off-by: Grazvydas Ignotas <[email protected]> Reviewed-by: Chad Versace <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.c')
-rw-r--r--src/intel/isl/isl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c
index 0eaa8087c71..6e492afe983 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -695,7 +695,7 @@ isl_calc_phys_slice0_extent_sa_gen9_1d(
const struct isl_extent4d *phys_level0_sa,
struct isl_extent2d *phys_slice0_sa)
{
- const struct isl_format_layout *fmtl = isl_format_get_layout(info->format);
+ MAYBE_UNUSED const struct isl_format_layout *fmtl = isl_format_get_layout(info->format);
assert(phys_level0_sa->height == 1);
assert(phys_level0_sa->depth == 1);