Fix the build with -Werror=maybe-uninitialized
gcc can't really know that the condition won't change between the first if and the second, so help it out by initializing the variable up top.
This commit is contained in:
@ -517,7 +517,7 @@ meta_compositor_manage (MetaCompositor *compositor)
|
|||||||
MetaDisplay *display = compositor->display;
|
MetaDisplay *display = compositor->display;
|
||||||
Display *xdisplay = display->xdisplay;
|
Display *xdisplay = display->xdisplay;
|
||||||
MetaScreen *screen = display->screen;
|
MetaScreen *screen = display->screen;
|
||||||
Window xwin;
|
Window xwin = 0;
|
||||||
gint width, height;
|
gint width, height;
|
||||||
MetaWaylandCompositor *wayland_compositor;
|
MetaWaylandCompositor *wayland_compositor;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user