[Mesa-dev] [PATCH 05/10] postprocess: fix new gcc6 warnings

Matt Turner mattst88 at gmail.com
Tue Feb 16 22:40:26 UTC 2016


On Tue, Feb 16, 2016 at 10:58 AM, Rob Clark <robdclark at gmail.com> wrote:
> In file included from src/gallium/state_trackers/dri/dri_screen.h:44:0,
>                  from src/gallium/state_trackers/dri/dri_query_renderer.c:7:
> src/gallium/auxiliary/postprocess/filters.h:54:33: warning: ‘pp_filters’
> defined but not used [-Wunused-const-variable]
>  static const struct pp_filter_t pp_filters[PP_FILTERS] = {
>                                  ^~~~~~~~~~
>
> Note, this one we may actually want to move into an .c file instead?

I think that would be best. I expect this table is being duplicated
for each compilation unit that uses it.


More information about the mesa-dev mailing list