options: address some clang-tidy issues

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

View File

@ -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