From 6acd1c8a6f39c417336b2e09edd4b8675241e05c Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 4 Aug 2025 19:59:13 +0200 Subject: [PATCH] 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 --- hw/xfree86/os-support/shared/drm_platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/os-support/shared/drm_platform.c b/hw/xfree86/os-support/shared/drm_platform.c index 1fd581f57..a7d92d7af 100644 --- a/hw/xfree86/os-support/shared/drm_platform.c +++ b/hw/xfree86/os-support/shared/drm_platform.c @@ -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);