Replace assert(0) with abort()

This avoids -Wreturn-type warnings.
This commit is contained in:
Simon Ser 2020-05-19 12:10:17 +02:00
parent ded5bd083c
commit 2b02f50553
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -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)