Does this do it instead?
diff --git a/resize.c b/resize.c
index 40a1a016..acb708b1 100644
--- a/resize.c
+++ b/resize.c
@@ -209,7 +213,7 @@ recalculate_sizes(void)
}
if (sx == 0 || sy == 0)
changed = 0;
- } else if (type == WINDOW_SIZE_SMALLEST) {
+ } else {
sx = sy = UINT_MAX;
TAILQ_FOREACH(c, &clients, entry) {
if ((s = c->session) == NULL)
On Tue, Sep 11, 2018 at 09:30:22AM +0100, Thomas Adam wrote:
> Initialise sx/sy to shut gcc/clang up.
> ---
> resize.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/resize.c b/resize.c
> index 40a1a016..5d136455 100644
> --- a/resize.c
> +++ b/resize.c
> @@ -141,7 +141,7 @@ recalculate_sizes(void)
> struct session *s;
> struct client *c;
> struct window *w;
> - u_int sx, sy, cx, cy;
> + u_int sx = 0, sy = 0, cx, cy;
> int flags, type, current, has, changed;
>
> /*
> --
> 2.11.0
>
> --
> You received this message because you are subscribed to the Google Groups
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send an email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.