aboutsummaryrefslogtreecommitdiff
path: root/hw/acpi
diff options
context:
space:
mode:
authorPierrick Bouvier <pierrick.bouvier@linaro.org>2024-09-18 21:46:08 -0700
committerThomas Huth <thuth@redhat.com>2024-09-24 13:53:34 +0200
commit3f46ff1d108cf23609cc41e2a225bab0b2f2a337 (patch)
treeb7e99bc2d7545c13f9be2fdad6cd440d86468fc7 /hw/acpi
parent4f37abff1cf27a2ee8e19d6e16ca536c11c02ac3 (diff)
downloadqemu-3f46ff1d108cf23609cc41e2a225bab0b2f2a337.zip
qemu-3f46ff1d108cf23609cc41e2a225bab0b2f2a337.tar.gz
qemu-3f46ff1d108cf23609cc41e2a225bab0b2f2a337.tar.bz2
hw/acpi: replace assert(0) with g_assert_not_reached()
This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-ID: <20240919044641.386068-2-pierrick.bouvier@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/acpi')
-rw-r--r--hw/acpi/aml-build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
index 6d4517c..006c506 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);