From: Pierrick Bouvier Date: Mon, 4 Nov 2024 22:21:02 +0000 (-0800) Subject: target/i386/hvf: fix clang compilation warning X-Git-Tag: v9.2.0-rc0~2^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=520c0bb2be47275961ec83bbc95205c7be064589;p=thirdparty%2Fqemu.git target/i386/hvf: fix clang compilation warning ../target/i386/hvf/x86_cpuid.c:35:28: error: a function declaration without a prototype is deprecated in all versions of C Fixes: 7cac7aa7040a823c585f1578a38f28e83c8bf3e1 Signed-off-by: Pierrick Bouvier Link: https://lore.kernel.org/r/20241104222102.1522688-1-pierrick.bouvier@linaro.org Signed-off-by: Paolo Bonzini --- diff --git a/target/i386/hvf/x86_cpuid.c b/target/i386/hvf/x86_cpuid.c index 3a116548a3d..492e8bfc809 100644 --- a/target/i386/hvf/x86_cpuid.c +++ b/target/i386/hvf/x86_cpuid.c @@ -32,7 +32,7 @@ static bool cached_xcr0; static uint64_t supported_xcr0; -static void cache_host_xcr0() +static void cache_host_xcr0(void) { if (cached_xcr0) { return;