mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2025-01-19 10:26:29 +01:00
Replace assert(0) with abort()
This avoids -Wreturn-type warnings.
This commit is contained in:
parent
ded5bd083c
commit
2b02f50553
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue