[Intel-gfx] [PATCH i-g-t 2/2] overlay: Fix compilation warning when not having xrandr

Damien Lespiau damien.lespiau at intel.com
Mon Oct 6 19:52:26 CEST 2014


Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 overlay/x11/position.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/overlay/x11/position.c b/overlay/x11/position.c
index f430281..cd00353 100644
--- a/overlay/x11/position.c
+++ b/overlay/x11/position.c
@@ -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;
-- 
1.8.3.1




More information about the Intel-gfx mailing list