[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/4] target/i386: fix build warning (gcc-12 -fsanitize=thread)
From: |
Pierrick Bouvier |
Subject: |
[PATCH v2 2/4] target/i386: fix build warning (gcc-12 -fsanitize=thread) |
Date: |
Wed, 14 Aug 2024 15:41:30 -0700 |
Found on debian stable.
../target/i386/kvm/kvm.c: In function ‘kvm_handle_rdmsr’:
../target/i386/kvm/kvm.c:5345:1: error: control reaches end of non-void
function [-Werror=return-type]
5345 | }
| ^
../target/i386/kvm/kvm.c: In function ‘kvm_handle_wrmsr’:
../target/i386/kvm/kvm.c:5364:1: error: control reaches end of non-void
function [-Werror=return-type]
5364 | }
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
target/i386/kvm/kvm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c
index 31f149c9902..ddec27edd5b 100644
--- a/target/i386/kvm/kvm.c
+++ b/target/i386/kvm/kvm.c
@@ -5770,7 +5770,7 @@ static int kvm_handle_rdmsr(X86CPU *cpu, struct kvm_run
*run)
}
}
- assert(false);
+ g_assert_not_reached();
}
static int kvm_handle_wrmsr(X86CPU *cpu, struct kvm_run *run)
@@ -5789,7 +5789,7 @@ static int kvm_handle_wrmsr(X86CPU *cpu, struct kvm_run
*run)
}
}
- assert(false);
+ g_assert_not_reached();
}
static bool has_sgx_provisioning;
--
2.39.2
- Re: [PATCH v2 1/4] meson: hide tsan related warnings, (continued)
- Re: [PATCH v2 1/4] meson: hide tsan related warnings, Thomas Huth, 2024/08/15
- Re: [PATCH v2 1/4] meson: hide tsan related warnings, Peter Maydell, 2024/08/15
- Re: [PATCH v2 1/4] meson: hide tsan related warnings, Daniel P . Berrangé, 2024/08/15
- Re: [PATCH v2 1/4] meson: hide tsan related warnings, Pierrick Bouvier, 2024/08/15
- Re: [PATCH v2 1/4] meson: hide tsan related warnings, Peter Maydell, 2024/08/15
- Re: [PATCH v2 1/4] meson: hide tsan related warnings, Pierrick Bouvier, 2024/08/15
- Re: [PATCH v2 1/4] meson: hide tsan related warnings, Thomas Huth, 2024/08/16
- Re: [PATCH v2 1/4] meson: hide tsan related warnings, Daniel P . Berrangé, 2024/08/16
[PATCH v2 4/4] docs/devel: update tsan build documentation, Pierrick Bouvier, 2024/08/14
[PATCH v2 2/4] target/i386: fix build warning (gcc-12 -fsanitize=thread),
Pierrick Bouvier <=
[PATCH v2 3/4] target/s390x: fix build warning (gcc-12 -fsanitize=thread), Pierrick Bouvier, 2024/08/14