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 <notasas@gmail.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Grazvydas Ignotas 2016-04-16 04:00:14 +03:00 committed by Ian Romanick
parent 29d2c0e9e6
commit ff48375a16
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -313,7 +313,7 @@ gen7_choose_valign_el(const struct isl_device *dev,
const struct isl_surf_init_info *restrict info,
enum isl_tiling tiling)
{
bool require_valign2 = false;
MAYBE_UNUSED bool require_valign2 = false;
bool require_valign4 = false;
if (isl_format_is_compressed(info->format))