From: Pierrick Bouvier Date: Thu, 19 Sep 2024 04:46:08 +0000 (-0700) Subject: hw/acpi: replace assert(0) with g_assert_not_reached() X-Git-Tag: v9.2.0-rc0~72^2~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f46ff1d108cf23609cc41e2a225bab0b2f2a337;p=thirdparty%2Fqemu.git 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 Signed-off-by: Pierrick Bouvier Message-ID: <20240919044641.386068-2-pierrick.bouvier@linaro.org> Signed-off-by: Thomas Huth --- 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);