summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Vesely <[email protected]>2014-07-25 08:33:00 -0600
committerBrian Paul <[email protected]>2014-08-04 09:51:38 -0600
commit6614def76420ba02b76385d7fa4d1d4ad9ec91d5 (patch)
tree656d2a9040c400b9534e7c162377a2122397d063
parentd66acc70777480439a67d59977169595b1cf4418 (diff)
gallium: Fix compiler warning.
warning: type qualifiers ignored on function return type Signed-off-by: Jan Vesely <[email protected]> Reviewed-by: Brian Paul <[email protected]>
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_ureg.c2
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_ureg.h2
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 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 );