[Mesa-dev] [PATCH 07/10] i965: fix new gcc6 warnings

Ian Romanick idr at freedesktop.org
Tue Feb 16 19:06:05 UTC 2016


This patch is

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

On 02/16/2016 10:58 AM, Rob Clark wrote:
> src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp:244:1: warning:
> ‘void {anonymous}::fs_copy_prop_dataflow::dump_block_data() const’ defined but not used [-Wunused-function]
>  fs_copy_prop_dataflow::dump_block_data() const
>  ^~~~~~~~~~~~~~~~~~~~~
> 
> From looking at git history, it looks like this is intended to be unused
> (ie. just for adding on-demand debug prints)
> 
> Signed-off-by: Rob Clark <robdclark at gmail.com>
> ---
>  src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
> index fd25307..9dbe13d 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
> @@ -87,7 +87,7 @@ public:
>     void setup_initial_values();
>     void run();
>  
> -   void dump_block_data() const;
> +   void dump_block_data() const UNUSED;
>  
>     void *mem_ctx;
>     cfg_t *cfg;
> 



More information about the mesa-dev mailing list