changeset 20810:f9245f58c134 v8.2.0957

patch 8.2.0957: compiler warning for uninitialized variable Commit: https://github.com/vim/vim/commit/2d4070d3b02e775a6f3d5ef52265add270e09a4f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 11 12:30:13 2020 +0200 patch 8.2.0957: compiler warning for uninitialized variable Problem: Compiler warning for uninitialized variable. (Tony Mechelynck) Solution: Initialize one variable.
author Bram Moolenaar <Bram@vim.org>
date Thu, 11 Jun 2020 12:45:04 +0200
parents f804e6f0c0bd
children af8f25c089dd
files src/spell.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/spell.c
+++ b/src/spell.c
@@ -207,7 +207,7 @@ spell_check(
     if (spell_iswordp(mi.mi_fend, wp))
     {
 	int prev_upper;
-	int this_upper;
+	int this_upper = FALSE;  // init for gcc
 
 	if (use_camel_case)
 	{
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    957,
+/**/
     956,
 /**/
     955,