mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 07:58:08 +02:00
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:
parent
e9168f98e6
commit
d84af7ccc5
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue