On Wed, 22 May 2013 12:36:27 -0700 Thiago Macieira <thiago.macie...@intel.com> wrote:
> On quarta-feira, 22 de maio de 2013 10.20.05, ppaala...@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. Indeed, I do both. Gcc 4.5 and almost always -O0, since I tend to need to keep debugging stuff. ;-) Thanks, pq _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel