[Mesa-dev] [PATCH] st/vega: Remove unused variable.
Jose Fonseca
jfonseca at vmware.com
Sat Feb 18 04:19:16 PST 2012
Looks good. This logic is already in mask_resource_fill so there seems to be no mistake, just dead code.
Jose
----- Original Message -----
> Fixes this GCC warning.
> mask.c: In function ‘mask_layer_fill’:
> mask.c:387:12: warning: variable ‘alpha_color’ set but not used
> [-Wunused-but-set-variable]
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
> src/gallium/state_trackers/vega/mask.c | 4 ----
> 1 files changed, 0 insertions(+), 4 deletions(-)
>
> diff --git a/src/gallium/state_trackers/vega/mask.c
> b/src/gallium/state_trackers/vega/mask.c
> index 1280ea9..89bff6e 100644
> --- a/src/gallium/state_trackers/vega/mask.c
> +++ b/src/gallium/state_trackers/vega/mask.c
> @@ -384,10 +384,6 @@ void mask_layer_fill(struct vg_mask_layer
> *layer,
> VGint width, VGint height,
> VGfloat value)
> {
> - VGfloat alpha_color[4] = {0, 0, 0, 0};
> -
> - alpha_color[3] = value;
> -
> mask_resource_fill(layer->sampler_view->texture,
> x, y, width, height, value);
> }
> --
> 1.7.9
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
More information about the mesa-dev
mailing list