From f773e723be884d421f1fbb48fb38c3eb20c7ec06 Mon Sep 17 00:00:00 2001 From: Maxim Solovyov Date: Fri, 11 Aug 2023 01:40:47 +0300 Subject: [PATCH] options: address some clang-tidy issues --- src/options.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/options.c b/src/options.c index 2b0bb1771e..834b66f0a9 100644 --- a/src/options.c +++ b/src/options.c @@ -561,8 +561,9 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable, case 290: // --backend opt->backend = parse_backend(optarg); - if (opt->backend >= NUM_BKEND) + if (opt->backend >= NUM_BKEND) { exit(1); + } break; P_CASEBOOL(291, glx_no_stencil); P_CASEINT(293, benchmark); @@ -622,8 +623,9 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable, break; case 304: // --opacity-rule - if (!parse_numeric_window_rule(&opt->opacity_rules, optarg, 0, 100)) + if (!parse_numeric_window_rule(&opt->opacity_rules, optarg, 0, 100)) { exit(1); + } break; case 305: // --shadow-exclude-reg @@ -728,8 +730,9 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable, break; case 340: // --corner-radius-rules - if (!parse_numeric_window_rule(&opt->corner_radius_rules, optarg, 0, INT_MAX)) + if (!parse_numeric_window_rule(&opt->corner_radius_rules, optarg, 0, INT_MAX)) { exit(1); + } break; case 335: // --clip-shadow-above