OSDN Git Service

target/mips: Replace [g_]assert(0) -> g_assert_not_reached()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 21 Feb 2023 22:47:55 +0000 (23:47 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 7 Mar 2023 17:08:12 +0000 (18:08 +0100)
commita43972e1769b6b35c2c5826e707ea784242b6287
treed59668ba75d3c73c517aaac9c45aba83f9bd9144
parentabe45a859b897736d7f428f58d1e5cab4fec4ddf
target/mips: Replace [g_]assert(0) -> g_assert_not_reached()

In order to avoid warnings such commit c0a6665c3c ("target/i386:
Remove compilation errors when -Werror=maybe-uninitialized"),
replace all assert(0) and g_assert(0) by g_assert_not_reached().

Remove any code following g_assert_not_reached().

See previous commit for rationale.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230221232520.14480-4-philmd@linaro.org>
target/mips/sysemu/physaddr.c
target/mips/tcg/msa_helper.c