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.
This commit is contained in:
Collin 2025-06-28 06:05:03 -05:00 committed by GitHub
parent 7fb4ba10f2
commit a692784259
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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