From a69278425966c6ba650d4a2385ad12e3843632ea Mon Sep 17 00:00:00 2001 From: Collin Date: Sat, 28 Jun 2025 06:05:03 -0500 Subject: [PATCH 1/3] Screen.c resolve compiler warning VisualID defaultVisual = 0; int rootDepth = 0; This makes certain that the variables are not undefined so it can silence a compiler warning I noticed when building the x11libre xserver. --- hw/xnest/Screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xnest/Screen.c b/hw/xnest/Screen.c index 25a7ccae8..c38a538a3 100644 --- a/hw/xnest/Screen.c +++ b/hw/xnest/Screen.c @@ -164,8 +164,8 @@ Bool xnestOpenScreen(ScreenPtr pScreen, int argc, char *argv[]) { unsigned long valuemask; - VisualID defaultVisual; - int rootDepth; + VisualID defaultVisual = 0; + int rootDepth = 0; miPointerScreenPtr PointPriv; if (!dixRegisterPrivateKey From 427d6f34f4ea057fafa9e28e406be8259039c185 Mon Sep 17 00:00:00 2001 From: Collin Date: Mon, 30 Jun 2025 16:10:48 -0500 Subject: [PATCH 2/3] Update Screen.c --- hw/xnest/Screen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/xnest/Screen.c b/hw/xnest/Screen.c index df5e8f984..7f11eb4dc 100644 --- a/hw/xnest/Screen.c +++ b/hw/xnest/Screen.c @@ -164,10 +164,10 @@ Bool xnestOpenScreen(ScreenPtr pScreen, int argc, char *argv[]) { - unsigned long valuemask; - VisualID defaultVisual = 0; - int rootDepth = 0; - miPointerScreenPtr PointPriv; + unsigned long valuemask; + VisualID defaultVisual = 0; + int rootDepth = 0; + miPointerScreenPtr PointPriv; if (!dixRegisterPrivateKey (&xnestWindowPrivateKeyRec, PRIVATE_WINDOW, sizeof(xnestPrivWin))) From f8b693e27d07565e8af06414d80d73a49816d54b Mon Sep 17 00:00:00 2001 From: Collin Date: Tue, 1 Jul 2025 01:12:45 -0500 Subject: [PATCH 3/3] Update Screen.c removed random extra line --- hw/xnest/Screen.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/xnest/Screen.c b/hw/xnest/Screen.c index 7f11eb4dc..c38a538a3 100644 --- a/hw/xnest/Screen.c +++ b/hw/xnest/Screen.c @@ -163,7 +163,6 @@ static void add_depth_visual(DepthPtr depths, int *numDepths, int nplanes, Visua Bool xnestOpenScreen(ScreenPtr pScreen, int argc, char *argv[]) { - unsigned long valuemask; VisualID defaultVisual = 0; int rootDepth = 0;