From: Jan Vesely Date: Fri, 25 Jul 2014 14:33:00 +0000 (-0600) Subject: gallium: Fix compiler warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6614def76420ba02b76385d7fa4d1d4ad9ec91d5;p=mesa.git gallium: Fix compiler warning. warning: type qualifiers ignored on function return type Signed-off-by: Jan Vesely Reviewed-by: Brian Paul --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c index 39216e59124..dcf0cb52185 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 2c3746c77f2..f014b5304a5 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 );