Reviewed-by: Jason Ekstrand <[email protected]>

On Tue, Feb 7, 2017 at 3:24 PM, Emil Velikov <[email protected]>
wrote:

> From: Emil Velikov <[email protected]>
>
> Not much point in the const qualifier since we provide a copy to the
> user. Resolves the following -Wignored-qualifiers warning.
>
> src/intel/blorp/blorp_blit.c:1857:8: warning: 'const' type qualifier on
> return type has no effect [-Wignored-qualifiers]
>
> v2: keep const qualifier of local variable.
>
> Cc: Jason Ekstrand <[email protected]>
> Signed-off-by: Emil Velikov <[email protected]>
> ---
>  src/intel/blorp/blorp_blit.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c
> index 111f1c13a8..6582c4042a 100644
> --- a/src/intel/blorp/blorp_blit.c
> +++ b/src/intel/blorp/blorp_blit.c
> @@ -1857,7 +1857,7 @@ adjust_split_source_coords(const struct blt_axis
> *orig,
>     split_coords->src1 = orig->src1 + (scale >= 0.0 ? delta1 : delta0);
>  }
>
> -static const struct isl_extent2d
> +static struct isl_extent2d
>  get_px_size_sa(const struct isl_surf *surf)
>  {
>     static const struct isl_extent2d one_to_one = { .w = 1, .h = 1 };
> --
> 2.11.0
>
>
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to