window: avoid a gcc warning in buffer release handler
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 22 May 2013 07:20:05 +0000 (10:20 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 22 May 2013 18:42:48 +0000 (14:42 -0400)
commit9777744cda6818fac5765f43e32c3c7b7c7c9b90
tree06c207c58f0b10d36ad627a41bd17e06849fa0c2
parentd7ab5b8007910dc4f637ed78a182a378c744bcd8
window: avoid a gcc warning in buffer release handler

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.

The debugging code now prints the shm_surface buffer state before and
after, instead of just after.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
clients/window.c