From f9b2f10a4115b0fef8e7731b5902235c1ec98bcf Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 21 Feb 2019 09:44:33 -0600 Subject: nir: Fix a compile warning --- src/compiler/nir/nir_gather_xfb_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/compiler/nir/nir_gather_xfb_info.c b/src/compiler/nir/nir_gather_xfb_info.c index 29e794cd4b5..ee0546ed39f 100644 --- a/src/compiler/nir/nir_gather_xfb_info.c +++ b/src/compiler/nir/nir_gather_xfb_info.c @@ -72,7 +72,7 @@ add_var_xfb_outputs(nir_xfb_info *xfb, } else { comp_slots = glsl_get_component_slots(type); - unsigned attrib_slots = DIV_ROUND_UP(comp_slots, 4); + UNUSED unsigned attrib_slots = DIV_ROUND_UP(comp_slots, 4); assert(attrib_slots == glsl_count_attribute_slots(type, false)); /* Ensure that we don't have, for instance, a dvec2 with a -- cgit v1.2.3