[PATCH weston] window: avoid a gcc warning in buffer release handler

Thiago Macieira thiago.macieira at intel.com
Wed May 22 12:36:27 PDT 2013


On quarta-feira, 22 de maio de 2013 10.20.05, ppaalanen at gmail.com wrote:
> Apparently some compilers complain about set but not used variables
> 'available' and 'bufs', but I don't get the warning. Still, separate the
> debugging code from shm_surface_buffer_release(), so that we only
> compute 'bufs' when it is printed. This should fix the warnings

Set-but-unused is a new warning in GCC 4.7 and, as most warnings of its type, 
sometimes it triggers only in release (optimised) mode. If you're building 
with -O0 or an older GCC, you might not have seen it.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20130522/8c232ff2/attachment.pgp>


More information about the wayland-devel mailing list