From 9cfdcda8499aa0f0d635efe593df94117351a19b Mon Sep 17 00:00:00 2001 From: Pierrick Bouvier Date: Thu, 6 Mar 2025 08:30:44 -0800 Subject: [PATCH] meson.build: remove warning for clang on windows Signed-off-by: Pierrick Bouvier --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index ff3aa86db9cb..991268bf5630 100644 --- a/meson.build +++ b/meson.build @@ -381,6 +381,8 @@ elif host_os == 'sunos' elif host_os == 'haiku' qemu_common_flags += ['-DB_USE_POSITIVE_POSIX_ERRORS', '-D_BSD_SOURCE', '-fPIC'] elif host_os == 'windows' + # spice headers report a warning with clang + qemu_common_flags += ['-Wno-pragma-pack'] # plugins use delaylib, and clang needs to be used with lld to make it work. if compiler.get_id() == 'clang' and compiler.get_linker_id() != 'ld.lld' error('On windows, you need to use lld with clang - use msys2 clang64/clangarm64 env')