mirror of
https://github.com/brl/mutter.git
synced 2025-08-01 22:24:41 +00:00
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;
|
||||
Display *xdisplay = display->xdisplay;
|
||||
MetaScreen *screen = display->screen;
|
||||
Window xwin;
|
||||
Window xwin = 0;
|
||||
gint width, height;
|
||||
MetaWaylandCompositor *wayland_compositor;
|
||||
|
||||
|
Reference in New Issue
Block a user