From 34024092d70666280d4e359e4ab8a0d1160028c3 Mon Sep 17 00:00:00 2001 From: Maxim Solovyov Date: Fri, 11 Aug 2023 01:38:22 +0300 Subject: [PATCH] picom: address some clang-tidy issues --- src/picom.c | 3 ++- src/picom.h | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/picom.c b/src/picom.c index 1567ab8..bf18523 100644 --- a/src/picom.c +++ b/src/picom.c @@ -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 diff --git a/src/picom.h b/src/picom.h index e68b1e0..d42ae04 100644 --- a/src/picom.h +++ b/src/picom.h @@ -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; + } + } } /**