diff options
author | Pierrick Bouvier <pierrick.bouvier@linaro.org> | 2024-09-18 21:46:20 -0700 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2024-09-24 13:53:35 +0200 |
commit | fe1f1a8070a7c28ca371d35b48eda6db31349a3c (patch) | |
tree | 5f04e61381360662c7bdfee46fb38b27ce3716ae | |
parent | 4e5a1cc07050d8ad4995192b383a5b9252718242 (diff) | |
download | qemu-fe1f1a8070a7c28ca371d35b48eda6db31349a3c.zip qemu-fe1f1a8070a7c28ca371d35b48eda6db31349a3c.tar.gz qemu-fe1f1a8070a7c28ca371d35b48eda6db31349a3c.tar.bz2 |
migration: replace assert(false) 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: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-ID: <20240919044641.386068-14-pierrick.bouvier@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
-rw-r--r-- | migration/dirtyrate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c index 1d9db81..c03b13b 100644 --- a/migration/dirtyrate.c +++ b/migration/dirtyrate.c @@ -228,7 +228,7 @@ static int time_unit_to_power(TimeUnit time_unit) case TIME_UNIT_MILLISECOND: return -3; default: - assert(false); /* unreachable */ + g_assert_not_reached(); return 0; } } |