From 2b02f505536bd211a63791fa13023300fd5580d3 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 19 May 2020 12:10:17 +0200 Subject: [PATCH] Replace assert(0) with abort() This avoids -Wreturn-type warnings. --- test/libdrm_mock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/libdrm_mock.c b/test/libdrm_mock.c index 22c2bb0..12a40a9 100644 --- a/test/libdrm_mock.c +++ b/test/libdrm_mock.c @@ -113,7 +113,7 @@ struct liftoff_mock_plane *liftoff_mock_drm_get_plane(uint32_t id) plane++; } - assert(0); + abort(); // unreachable } void liftoff_mock_plane_add_compatible_layer(struct liftoff_mock_plane *plane, @@ -128,7 +128,7 @@ void liftoff_mock_plane_add_compatible_layer(struct liftoff_mock_plane *plane, } } - assert(0); + abort(); // unreachable } uint32_t liftoff_mock_drm_create_fb(struct liftoff_layer *layer)