Skip to content

Commit

Permalink
options: address some clang-tidy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelynothelix committed Aug 10, 2023
1 parent 3402409 commit f773e72
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f773e72

Please sign in to comment.