gl-renderer: Silence maybe-uninitialized warning

libweston/gl-renderer.c: In function 'compress_bands':
libweston/gl-renderer.c:481:6: warning: 'merged' may be used
uninitialized in this function [-Wmaybe-uninitialized]
   if (!merged) {
         ^

Warning produced by GCC 5.3 and 6.1, with -Og.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
Reviewed-by: Giulio Camuffo <giuliocamuffo@gmail.com>
dev
Quentin Glidic 8 years ago
parent e9168f98e6
commit d84af7ccc5
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
  1. 2
      libweston/gl-renderer.c

@ -455,7 +455,7 @@ static int
compress_bands(pixman_box32_t *inrects, int nrects,
pixman_box32_t **outrects)
{
bool merged;
bool merged = false;
pixman_box32_t *out, merge_rect;
int i, j, nout;

Loading…
Cancel
Save