[Mesa-dev] [PATCH 3/3] gallium: Fix compiler warning.
Brian Paul
brianp at vmware.com
Mon Jul 28 09:56:03 PDT 2014
On 07/25/2014 08:33 AM, Jan Vesely wrote:
> warning: type qualifiers ignored on function return type
>
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
> ---
> src/gallium/auxiliary/tgsi/tgsi_ureg.c | 2 +-
> src/gallium/auxiliary/tgsi/tgsi_ureg.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
> index 39216e5..dcf0cb5 100644
> --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c
> +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
> @@ -1808,7 +1808,7 @@ no_ureg:
> }
>
>
> -const unsigned
> +unsigned
> ureg_get_nr_outputs( const struct ureg_program *ureg )
> {
> if (!ureg)
> diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.h b/src/gallium/auxiliary/tgsi/tgsi_ureg.h
> index 2c3746c..f014b53 100644
> --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.h
> +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.h
> @@ -115,7 +115,7 @@ ureg_get_tokens( struct ureg_program *ureg,
> /*
> * Returns the number of currently declared outputs.
> */
> -const unsigned
> +unsigned
> ureg_get_nr_outputs( const struct ureg_program *ureg );
>
>
>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list