From a69278425966c6ba650d4a2385ad12e3843632ea Mon Sep 17 00:00:00 2001 From: Collin Date: Sat, 28 Jun 2025 06:05:03 -0500 Subject: [PATCH] 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