[Piglit] [PATCH] arb_enhanced_layouts: Remove unused variable.

Nicolai Hähnle nhaehnle at gmail.com
Fri Apr 21 07:22:43 UTC 2017


On 20.04.2017 23:42, Vinson Lee wrote:
> Fix GCC unused-const-variable warning.
>
> gs-stream-location-aliasing.c:74:18: warning: ‘num_total_xfb_results’ defined but not used [-Wunused-const-variable=]
>  static const int num_total_xfb_results = 2 * 2 * 2;
>                   ^~~~~~~~~~~~~~~~~~~~~
>
> Fixes: b81ecc9d3c68 ("arb_enhanced_layouts: add test for location aliasing across GS vertex streams")
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>

Thanks, and sorry for the noise.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>


> ---
>  tests/spec/arb_enhanced_layouts/gs-stream-location-aliasing.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/tests/spec/arb_enhanced_layouts/gs-stream-location-aliasing.c b/tests/spec/arb_enhanced_layouts/gs-stream-location-aliasing.c
> index 5bcacb0fdb37..765431e98665 100644
> --- a/tests/spec/arb_enhanced_layouts/gs-stream-location-aliasing.c
> +++ b/tests/spec/arb_enhanced_layouts/gs-stream-location-aliasing.c
> @@ -71,7 +71,6 @@ static const char gs_text[] =
>
>  static const int num_in_vertices = 2;
>  static const int num_xfb_results_per_stream = 2 * 2;
> -static const int num_total_xfb_results = 2 * 2 * 2;
>
>  static void
>  build_and_use_program()
>


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the Piglit mailing list