Fix compiler warnings generated by older toolchains/compiler
This fixes warnings like ``may be used uninitialized'' libweston/compositor-drm.c: In function 'drm_device_is_kms': libweston/compositor-drm.c:6374:12: warning: 'id' may be used uninitialized in this function [-Wmaybe-uninitialized] b->drm.id = id; Signed-off-by: Marius Vlad <marius.vlad0@gmail.com>
This commit is contained in:
+1
-1
@@ -2610,7 +2610,7 @@ recompute_selection(struct terminal *terminal)
|
||||
int side_margin, top_margin;
|
||||
int start_x, end_x;
|
||||
int cw, ch;
|
||||
union utf8_char *data;
|
||||
union utf8_char *data = NULL;
|
||||
|
||||
cw = terminal->average_width;
|
||||
ch = terminal->extents.height;
|
||||
|
||||
Reference in New Issue
Block a user