mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Fix bool return types
This makes wlroots build in C23 mode. C23 is more strict and rejects implicit conversions from bool to a pointer.
This commit is contained in:
parent
2f2a55ebd3
commit
a0b1329ee6
4 changed files with 7 additions and 7 deletions
|
|
@ -600,7 +600,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
|
|||
|
||||
if (!query_formats(x11)) {
|
||||
wlr_log(WLR_ERROR, "Failed to query supported DRM formats");
|
||||
return false;
|
||||
goto error_event;
|
||||
}
|
||||
|
||||
x11->drm_fd = -1;
|
||||
|
|
@ -637,7 +637,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
|
|||
#if HAVE_XCB_ERRORS
|
||||
if (xcb_errors_context_new(x11->xcb, &x11->errors_context) != 0) {
|
||||
wlr_log(WLR_ERROR, "Failed to create error context");
|
||||
return false;
|
||||
goto error_event;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue