[Mesa-dev] radv: unused variable ‘total_count’

Samuel Pitoiset samuel.pitoiset at gmail.com
Mon Oct 9 12:13:39 UTC 2017


Yeah, we should add MAYBE_UNUSED to avoid compiler warnings. Not a big 
deal though.

On 10/09/2017 02:12 PM, Dieter Nützel wrote:
> Hello,
> 
> not that I have any app which need Vulkan currently (hint, hint any game 
> for 'testing'), but...
> 
>    CC       radv_meta_blit.lo
> radv_cmd_buffer.c: In function ‘radv_CmdSetViewport’:
> radv_cmd_buffer.c:2496:17: warning: unused variable ‘total_count’ 
> [-Wunused-variable]
>    const uint32_t total_count = firstViewport + viewportCount;
>                   ^~~~~~~~~~~
> radv_cmd_buffer.c: In function ‘radv_CmdSetScissor’:
> radv_cmd_buffer.c:2514:17: warning: unused variable ‘total_count’ 
> [-Wunused-variable]
>    const uint32_t total_count = firstScissor + scissorCount;
> 
> Thanks,
> Dieter


More information about the mesa-dev mailing list