]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.0598: building with gcc 7.1 yields new warnings v8.0.0598
authorBram Moolenaar <Bram@vim.org>
Tue, 16 May 2017 07:36:54 +0000 (09:36 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 16 May 2017 07:36:54 +0000 (09:36 +0200)
Problem:    Building with gcc 7.1 yields new warnings.
Solution:   Initialize result. (John Marriott)

src/ex_docmd.c
src/version.c

index d0df1fd9f377f7541689f1048237a562e76a1bfd..13d5fe495ee0722828e26bed94e6d57fed8b581f 100644 (file)
@@ -10890,6 +10890,9 @@ eval_vars(
                result = strbuf;
                break;
 #endif
+       default:
+               result = (char_u *)""; /* avoid gcc warning */
+               break;
        }
 
        resultlen = (int)STRLEN(result);        /* length of new string */
index dd39fcdac588a47c5d675d3ffafa5cea92c60580..700b4bd1ed9d502f0ca657562a08e3f1a6c0ae4d 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    598,
 /**/
     597,
 /**/