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:
Simon Ser 2019-11-24 19:33:26 +01:00 committed by Drew DeVault
parent 6bd7a62c09
commit bcd5f7d259
1 changed files with 1 additions and 1 deletions

View File

@ -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) {