mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05: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:
parent
3f70bdd331
commit
f4f529385a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user