overlay: Fix compilation warning when not having xrandr
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 6 Oct 2014 17:23:33 +0000 (18:23 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 6 Oct 2014 17:52:06 +0000 (18:52 +0100)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
overlay/x11/position.c

index f430281..cd00353 100644 (file)
@@ -76,10 +76,11 @@ static enum position get_position(struct config *config)
 static void screen_size(Display *dpy, struct config *config,
                        int *scr_x, int *scr_y, int *scr_width, int *scr_height)
 {
-       const char *crtc;
        Screen *scr;
 
 #ifdef HAVE_XRANDR
+       const char *crtc;
+
        crtc = config_get_value(config, "x11", "crtc");
        if (crtc) {
                XRRScreenResources *res;