# HG changeset patch # User Bram Moolenaar # Date 1669662903 -3600 # Node ID a7cc6caf19472c0d35d22355f939229545a9be74 # Parent a79a8c911704003ee0bc22fe5cc13900ec01f949 patch 9.0.0966: some compilers don't allow a declaration after a label Commit: https://github.com/vim/vim/commit/f86490ed4fdab213a28f667abd055c023a73d645 Author: Bram Moolenaar Date: Mon Nov 28 19:11:02 2022 +0000 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) diff --git a/src/screen.c b/src/screen.c --- 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 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 966, +/**/ 965, /**/ 964,