From 8ce76acddf5ae83546a0b9fbc01c862007ccba72 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 27 Mar 2024 19:19:00 +0100 Subject: [PATCH] xfree86: os-support: bsd fix warning on unused label on NetBSD The label is only used on FreeBSD, so compiling on NetBSD gives a warning on unused label. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- hw/xfree86/os-support/bsd/bsd_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/xfree86/os-support/bsd/bsd_init.c b/hw/xfree86/os-support/bsd/bsd_init.c index 393691be8..dcbb7b91e 100644 --- a/hw/xfree86/os-support/bsd/bsd_init.c +++ b/hw/xfree86/os-support/bsd/bsd_init.c @@ -255,7 +255,9 @@ xf86OpenConsole(void) sleep(1); } #endif +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) acquire_vt: +#endif if (!xf86Info.ShareVTs) { /* * now get the VT