mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
backend/session: non-void function should return a value
With assertions disabled, it should make sense to return NULL.
This commit is contained in:
parent
0695324de7
commit
68b4a5305e
2 changed files with 2 additions and 0 deletions
|
|
@ -197,6 +197,7 @@ static struct wlr_device *find_device(struct wlr_session *session, int fd) {
|
|||
|
||||
wlr_log(WLR_ERROR, "Tried to use fd %d not opened by session", fd);
|
||||
assert(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void wlr_session_close_file(struct wlr_session *session, int fd) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue