picom: address some clang-tidy issues

This commit is contained in:
Maxim Solovyov 2023-08-11 01:38:22 +03:00
parent ae3c77b1a5
commit 34024092d7
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View File

@ -501,8 +501,9 @@ static void rebuild_screen_reg(session_t *ps) {
*/
static void rebuild_shadow_exclude_reg(session_t *ps) {
bool ret = parse_geometry(ps, ps->o.shadow_exclude_reg_str, &ps->shadow_exclude_reg);
if (!ret)
if (!ret) {
exit(1);
}
}
/// Free up all the images and deinit the backend

View File

@ -60,9 +60,11 @@ uint8_t session_redirection_mode(session_t *ps);
static inline void wintype_arr_enable_unset(switch_t arr[]) {
wintype_t i;
for (i = 0; i < NUM_WINTYPES; ++i)
if (UNSET == arr[i])
for (i = 0; i < NUM_WINTYPES; ++i) {
if (UNSET == arr[i]) {
arr[i] = ON;
}
}
}
/**