mirror of
https://github.com/tmux/tmux.git
synced 2024-12-14 02:48:47 +00:00
Fix some warnings, from Jan Polensky.
This commit is contained in:
parent
5e97d79eb1
commit
ca18990826
@ -268,7 +268,7 @@ window_customize_build_option(struct window_customize_modedata *data,
|
||||
if (oe != NULL && oe->unit != NULL)
|
||||
format_add(ft, "option_unit", "%s", oe->unit);
|
||||
else
|
||||
format_add(ft, "option_unit", "");
|
||||
format_add(ft, "option_unit", "%s", "");
|
||||
|
||||
if (!array) {
|
||||
value = options_to_string(o, -1, 0);
|
||||
@ -367,12 +367,12 @@ window_customize_build_options(struct window_customize_modedata *data,
|
||||
o = options_get(oo1, list[i]);
|
||||
else
|
||||
o = options_get(oo2, list[i]);
|
||||
if (options_owner(o) == oo0)
|
||||
scope = scope0;
|
||||
if (options_owner(o) == oo2)
|
||||
scope = scope2;
|
||||
else if (options_owner(o) == oo1)
|
||||
scope = scope1;
|
||||
else if (options_owner(o) == oo2)
|
||||
scope = scope2;
|
||||
else
|
||||
scope = scope0;
|
||||
window_customize_build_option(data, top, scope, o, ft, filter,
|
||||
fs);
|
||||
}
|
||||
@ -391,12 +391,12 @@ window_customize_build_options(struct window_customize_modedata *data,
|
||||
o = options_get(oo1, name);
|
||||
else
|
||||
o = loop;
|
||||
if (options_owner(o) == oo0)
|
||||
scope = scope0;
|
||||
if (options_owner(o) == oo2)
|
||||
scope = scope2;
|
||||
else if (options_owner(o) == oo1)
|
||||
scope = scope1;
|
||||
else if (options_owner(o) == oo2)
|
||||
scope = scope2;
|
||||
else
|
||||
scope = scope0;
|
||||
window_customize_build_option(data, top, scope, o, ft, filter,
|
||||
fs);
|
||||
loop = options_next(loop);
|
||||
|
Loading…
Reference in New Issue
Block a user