mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00:00
Fix clang warnings
This commit is contained in:
parent
4546ce1188
commit
bacd40d6db
|
@ -171,7 +171,7 @@ void error_handler(int sig) {
|
||||||
sway_log(L_ERROR, "Unable to allocate memory to show maps");
|
sway_log(L_ERROR, "Unable to allocate memory to show maps");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
sway_log(L_ERROR, m);
|
sway_log(L_ERROR, "%s", m);
|
||||||
}
|
}
|
||||||
fclose(maps);
|
fclose(maps);
|
||||||
}
|
}
|
||||||
|
|
|
@ -870,8 +870,8 @@ static struct cmd_results *cmd_move(int argc, char **argv) {
|
||||||
uint32_t w = size->w - g.size.w;
|
uint32_t w = size->w - g.size.w;
|
||||||
uint32_t h = size->h - g.size.h;
|
uint32_t h = size->h - g.size.h;
|
||||||
|
|
||||||
view->x = g.origin.x = MIN(w, MAX(x, 0));
|
view->x = g.origin.x = MIN((int32_t)w, MAX(x, 0));
|
||||||
view->y = g.origin.y = MIN(h, MAX(y, 0));
|
view->y = g.origin.y = MIN((int32_t)h, MAX(y, 0));
|
||||||
|
|
||||||
wlc_view_set_geometry(view->handle, 0, &g);
|
wlc_view_set_geometry(view->handle, 0, &g);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue