[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/39] hw/acpi: replace assert(0) with g_assert_not_reached()
From: |
Pierrick Bouvier |
Subject: |
[PATCH 02/39] hw/acpi: replace assert(0) with g_assert_not_reached() |
Date: |
Tue, 10 Sep 2024 15:15:29 -0700 |
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
hw/acpi/aml-build.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
index 6d4517cfbe3..006c506a375 100644
--- a/hw/acpi/aml-build.c
+++ b/hw/acpi/aml-build.c
@@ -534,7 +534,7 @@ void aml_append(Aml *parent_ctx, Aml *child)
case AML_NO_OPCODE:
break;
default:
- assert(0);
+ g_assert_not_reached();
break;
}
build_append_array(parent_ctx->buf, buf);
--
2.39.2
- [PATCH 00/39] Use g_assert_not_reached instead of (g_)assert(0, false), Pierrick Bouvier, 2024/09/10
- [PATCH 02/39] hw/acpi: replace assert(0) with g_assert_not_reached(),
Pierrick Bouvier <=
- [PATCH 01/39] docs/spin: replace assert(0) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- Re: [PATCH 01/39] docs/spin: replace assert(0) with g_assert_not_reached(), Eric Blake, 2024/09/11
- Re: [PATCH 01/39] docs/spin: replace assert(0) with g_assert_not_reached(), Eric Blake, 2024/09/11
- Re: [PATCH 01/39] docs/spin: replace assert(0) with g_assert_not_reached(), Maciej S. Szmigiero, 2024/09/11
- Re: [PATCH 01/39] docs/spin: replace assert(0) with g_assert_not_reached(), Richard W.M. Jones, 2024/09/11
- Re: [PATCH 01/39] docs/spin: replace assert(0) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/11
- Re: [PATCH 01/39] docs/spin: replace assert(0) with g_assert_not_reached(), Richard Henderson, 2024/09/11
- Re: [PATCH 01/39] docs/spin: replace assert(0) with g_assert_not_reached(), Thomas Huth, 2024/09/11
- Re: [PATCH 01/39] docs/spin: replace assert(0) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/11
- Re: [PATCH 01/39] docs/spin: replace assert(0) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/11