[Mesa-dev] [PATCH 3/3] gallium: Fix compiler warning.
Jan Vesely
jan.vesely at rutgers.edu
Fri Jul 25 07:33:44 PDT 2014
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 );
--
1.9.3
More information about the mesa-dev
mailing list