]> granicus.if.org Git - vim/commitdiff
patch 8.2.0957: compiler warning for uninitialized variable v8.2.0957
authorBram Moolenaar <Bram@vim.org>
Thu, 11 Jun 2020 10:30:13 +0000 (12:30 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 11 Jun 2020 10:30:13 +0000 (12:30 +0200)
Problem:    Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution:   Initialize one variable.

src/spell.c
src/version.c

index 8558d3908572df75dc9fefad87c4690f78b03d91..b3d9b0a3cd00510c25d7d12cb9d49ab6fca95f54 100644 (file)
@@ -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)
        {
index 66f01def3bc65c9ed9d5dd27a3457ec9daa46488..5638e829405827817b8108345355f6bc34db6913 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    957,
 /**/
     956,
 /**/