diff options
author | Simon Ser <contact@emersion.fr> | 2019-11-24 19:33:26 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-11-25 08:54:04 -0500 |
commit | bcd5f7d259690b547d9858d201b1126df78c6451 (patch) | |
tree | 8d8296d6abeb03145bb54073c480ee8f93a95599 /render | |
parent | 6bd7a62c09af07dfecd2ae1d056d1cb2c68c2b01 (diff) |
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,
| ^~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'render')
-rw-r--r-- | render/wlr_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/wlr_texture.c b/render/wlr_texture.c index 833032c9..8c7e1be3 100644 --- a/render/wlr_texture.c +++ b/render/wlr_texture.c @@ -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) { |