[Mesa-dev] linker.cpp warning

Ian Romanick idr at freedesktop.org
Tue Jan 24 11:36:08 PST 2012


On 01/24/2012 10:08 AM, Brian Paul wrote:
> I've been seeing this error from linker.cpp for a few days now:
>
> linker.cpp: In function ‘gl_shader* link_intrastage_shaders(void*,
> gl_context*, gl_shader_program*, gl_shader**, unsigned int)’:
> linker.cpp:1008: warning: ‘link_intrastage_shaders(void*, gl_context*,
> gl_shader_program*, gl_shader**, unsigned int)::array_sizing_visitor’
> declared with greater visibility than the type of its field
> ‘link_intrastage_shaders(void*, gl_context*, gl_shader_program*,
> gl_shader**, unsigned int)::array_sizing_visitor::<anonymous>’
> linker.cpp:1008: warning: ‘link_intrastage_shaders(void*, gl_context*,
> gl_shader_program*, gl_shader**, unsigned int)::array_sizing_visitor’
> declared with greater visibility than its base
> ‘ir_hierarchical_visitor’
> ar: creating libglsl.a
>
>
> Can someone fix that?

I don't get that warning in my builds.  My guess is that it may be 
caused by some of the -fvisibility changes that have been going on.  I'm 
not really sure what the root cause is.  There are a lot of other 
classes that derive from ir_hierarchical_visitor without issue 
(presumably).  I don't see what's special about this case.

What happens if you move the class outside the function?


More information about the mesa-dev mailing list