From: Vinson Lee Date: Sun, 7 Feb 2010 08:09:46 +0000 (-0800) Subject: llvmpipe: Silence GCC 'type qualifiers ignored on function return type' warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bfa877cdd3a92695830034822ccd9e83cace55b2;p=mesa.git llvmpipe: Silence GCC 'type qualifiers ignored on function return type' warnings. --- diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h b/src/gallium/drivers/llvmpipe/lp_rast.h index e4c56f153fc..34da73eb50e 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;