]> granicus.if.org Git - vim/commitdiff
patch 8.1.0699: compiler warning for uninitialized variable v8.1.0699
authorBram Moolenaar <Bram@vim.org>
Sun, 6 Jan 2019 16:44:38 +0000 (17:44 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 6 Jan 2019 16:44:38 +0000 (17:44 +0100)
Problem:    Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution:   Add a dummy init.

src/edit.c
src/version.c

index d4951d9f34f04691929f52e02861da8ebe641651..813e95d34b3f4e720fec0670093612df080eddc0 100644 (file)
@@ -7970,7 +7970,7 @@ replace_do_bs(int limit_col)
     if (cc > 0)
     {
 #ifdef FEAT_TEXT_PROP
-       size_t  len_before;
+       size_t  len_before = 0;  // init to shut up GCC
 
        if (curbuf->b_has_textprop)
        {
index ec4283af69d25259061c79857ca5bfc20c6c9bc6..a693050318184c3e96df32d39acbc100e0b65d91 100644 (file)
@@ -799,6 +799,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    699,
 /**/
     698,
 /**/