Mesa (master): llvmpipe: Silence GCC ' type qualifiers ignored on function return type' warnings.

Vinson Lee vlee at kemper.freedesktop.org
Sun Feb 7 00:11:31 PST 2010


Module: Mesa
Branch: master
Commit: bfa877cdd3a92695830034822ccd9e83cace55b2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bfa877cdd3a92695830034822ccd9e83cace55b2

Author: Vinson Lee <vlee at vmware.com>
Date:   Sun Feb  7 00:09:46 2010 -0800

llvmpipe: Silence GCC 'type qualifiers ignored on function return type' warnings.

---

 src/gallium/drivers/llvmpipe/lp_rast.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h b/src/gallium/drivers/llvmpipe/lp_rast.h
index e4c56f1..34da73e 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.h
+++ b/src/gallium/drivers/llvmpipe/lp_rast.h
@@ -152,7 +152,7 @@ union lp_rast_cmd_arg {
 
 /* Cast wrappers.  Hopefully these compile to noops!
  */
-static INLINE const union lp_rast_cmd_arg
+static INLINE union lp_rast_cmd_arg
 lp_rast_arg_inputs( const struct lp_rast_shader_inputs *shade_tile )
 {
    union lp_rast_cmd_arg arg;
@@ -160,7 +160,7 @@ lp_rast_arg_inputs( const struct lp_rast_shader_inputs *shade_tile )
    return arg;
 }
 
-static INLINE const union lp_rast_cmd_arg
+static INLINE union lp_rast_cmd_arg
 lp_rast_arg_triangle( const struct lp_rast_triangle *triangle )
 {
    union lp_rast_cmd_arg arg;
@@ -168,7 +168,7 @@ lp_rast_arg_triangle( const struct lp_rast_triangle *triangle )
    return arg;
 }
 
-static INLINE const union lp_rast_cmd_arg
+static INLINE union lp_rast_cmd_arg
 lp_rast_arg_state( const struct lp_rast_state *state )
 {
    union lp_rast_cmd_arg arg;
@@ -176,7 +176,7 @@ lp_rast_arg_state( const struct lp_rast_state *state )
    return arg;
 }
 
-static INLINE const union lp_rast_cmd_arg
+static INLINE union lp_rast_cmd_arg
 lp_rast_arg_fence( struct lp_fence *fence )
 {
    union lp_rast_cmd_arg arg;
@@ -185,7 +185,7 @@ lp_rast_arg_fence( struct lp_fence *fence )
 }
 
 
-static INLINE const union lp_rast_cmd_arg
+static INLINE union lp_rast_cmd_arg
 lp_rast_arg_null( void )
 {
    union lp_rast_cmd_arg arg;



More information about the mesa-commit mailing list