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:
parent
29d2c0e9e6
commit
ff48375a16
|
@ -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);
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue