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>
This commit is contained in:
Quentin Glidic 2016-07-10 11:00:50 +02:00
parent e9168f98e6
commit d84af7ccc5
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
1 changed files with 1 additions and 1 deletions

View File

@ -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;