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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Damien Lespiau <damien.lespiau@xxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux