xfree86: drm_platform: fix warning on potentially unitialized variable

../hw/xfree86/os-support/shared/drm_platform.c:37:13: warning: variable 'paused' is uninitialized when used here [-Wuninitialized]
     37 |         if (paused) {
        |             ^~~~~~
  ../hw/xfree86/os-support/shared/drm_platform.c:31:16: note: initialize the variable 'paused' to silence this warning
     31 |     Bool paused, server_fd = FALSE;
        |                ^
        |                 = 0
  1 warning generated.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-08-04 19:59:13 +02:00
committed by Enrico Weigelt
parent bbabd96e6c
commit 6acd1c8a6f

View File

@@ -28,7 +28,7 @@ get_drm_info(struct OdevAttributes *attribs, char *path, int delayed_index)
drmVersionPtr v;
int fd;
int err = 0;
Bool paused, server_fd = FALSE;
Bool paused = FALSE, server_fd = FALSE;
LogMessage(X_INFO, "Platform probe for %s\n", attribs->syspath);