From c2d60070ade070aa03c76c40fdfd14c99882a05c Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 11 Dec 2025 13:51:36 +0100 Subject: [PATCH] xfree86: silence warnings on SYSCALL() macro > ../hw/xfree86/os-support/shared/posix_tty.c:366:38: warning: while loop has empty body [-Wempty-body] > 366 | SYSCALL(r = read(fd, buf, count)); > | ^ Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/os-support/xf86_OSlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/os-support/xf86_OSlib.h b/hw/xfree86/os-support/xf86_OSlib.h index ec5af3a6f5..3d601b92c3 100644 --- a/hw/xfree86/os-support/xf86_OSlib.h +++ b/hw/xfree86/os-support/xf86_OSlib.h @@ -234,7 +234,7 @@ struct pcvtid { #define MAP_FAILED ((void *)-1) #endif -#define SYSCALL(call) while(((call) == -1) && (errno == EINTR)) +#define SYSCALL(call) while(((call) == -1) && (errno == EINTR)) {} #include "xf86_OSproc.h"