From f86490ed4fdab213a28f667abd055c023a73d645 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 28 Nov 2022 19:11:02 +0000 Subject: [PATCH] patch 9.0.0966: some compilers don't allow a declaration after a label Problem: Some compilers don't allow a declaration after a label. Solution: Move the declaration to the start of the block. (John Marriott) --- src/screen.c | 4 ++-- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/screen.c b/src/screen.c index 7c3a6d7b06..3bf15d6c85 100644 --- a/src/screen.c +++ b/src/screen.c @@ -2383,6 +2383,7 @@ screenalloc(int doclear) static int entered = FALSE; // avoid recursiveness static int done_outofmem_msg = FALSE; // did outofmem message int retry_count = 0; + int found_null; retry: /* @@ -2509,8 +2510,7 @@ retry: #endif give_up: - - int found_null = FALSE; + found_null = FALSE; for (int i = 0; i < p_mco; ++i) if (new_ScreenLinesC[i] == NULL) { diff --git a/src/version.c b/src/version.c index 8d51ea702a..240def4532 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 966, /**/ 965, /**/