Note there's commented out code which uses it. So either get rid of that
too, plus whatever was in that stage (half_line_width), or keep it,
otherwise it's just less obvious these things aren't used.

Roland

Am 11.04.2017 um 19:58 schrieb Samuel Pitoiset:
> Fixes the following Clang warning.
> 
> draw/draw_pipe_wide_line.c:48:38: warning: unused function 'wideline_stage' 
> [-Wunused-function]
> static inline struct wideline_stage *wideline_stage( struct draw_stage *stage 
> )
>                                      ^
> 1 warning generated.
> 
> Signed-off-by: Samuel Pitoiset <[email protected]>
> ---
>  src/gallium/auxiliary/draw/draw_pipe_wide_line.c | 8 --------
>  1 file changed, 8 deletions(-)
> 
> diff --git a/src/gallium/auxiliary/draw/draw_pipe_wide_line.c 
> b/src/gallium/auxiliary/draw/draw_pipe_wide_line.c
> index ae4a00eb63..4232a4a17c 100644
> --- a/src/gallium/auxiliary/draw/draw_pipe_wide_line.c
> +++ b/src/gallium/auxiliary/draw/draw_pipe_wide_line.c
> @@ -44,14 +44,6 @@ struct wideline_stage {
>  };
>  
>  
> -
> -static inline struct wideline_stage *wideline_stage( struct draw_stage 
> *stage )
> -{
> -   return (struct wideline_stage *)stage;
> -}
> -
> -
> -
>  /**
>   * Draw a wide line by drawing a quad (two triangles).
>   */
> 

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to