mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
render: remove return in wlr_texture_get_size
Otherwise this error happens: ../subprojects/wlroots/render/wlr_texture.c: In function ‘wlr_texture_get_size’: ../subprojects/wlroots/render/wlr_texture.c:47:9: error: ISO C forbids ‘return’ with expression, in function returning void [-Werror=pedantic] 47 | return texture->impl->get_size(texture, width, height); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../subprojects/wlroots/render/wlr_texture.c:45:6: note: declared here 45 | void wlr_texture_get_size(struct wlr_texture *texture, int *width, | ^~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
6bd7a62c09
commit
bcd5f7d259
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ struct wlr_texture *wlr_texture_from_dmabuf(struct wlr_renderer *renderer,
|
|||
|
||||
void wlr_texture_get_size(struct wlr_texture *texture, int *width,
|
||||
int *height) {
|
||||
return texture->impl->get_size(texture, width, height);
|
||||
texture->impl->get_size(texture, width, height);
|
||||
}
|
||||
|
||||
bool wlr_texture_is_opaque(struct wlr_texture *texture) {
|
||||
|
|
Loading…
Reference in a new issue