convert -Wno-sign-compare to -Werror=sign-compare

This commit is contained in:
Leonardo Hernández Hernández 2023-01-11 12:13:53 -06:00
parent cf9c5745e5
commit b0dcc7167b
No known key found for this signature in database
GPG key ID: E538897EE11B9624
3 changed files with 18 additions and 15 deletions

View file

@ -336,8 +336,10 @@ client_set_fullscreen(Client *c, int fullscreen)
}
static inline uint32_t
client_set_size(Client *c, uint32_t width, uint32_t height)
client_set_size(Client *c, int32_t width, int32_t height)
{
if (width < 0 || height < 0)
return 0;
#ifdef XWAYLAND
if (client_is_x11(c)) {
wlr_xwayland_surface_configure(c->surface.xwayland,
@ -346,7 +348,7 @@ client_set_size(Client *c, uint32_t width, uint32_t height)
}
#endif
if (width == c->surface.xdg->toplevel->current.width
&& height ==c->surface.xdg->toplevel->current.height)
&& height == c->surface.xdg->toplevel->current.height)
return 0;
return wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, width, height);
}