summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-05-16 09:36:54 +0200
committerBram Moolenaar <Bram@vim.org>2017-05-16 09:36:54 +0200
commit9e0f6ec0762575d229b86798b284ca4876bc3d73 (patch)
treed51c44c78605ab6627594bd023e56eb87b62ae59
parent253f9128779f315ea670f9b4a17446b7b4c74927 (diff)
patch 8.0.0598: building with gcc 7.1 yields new warningsv8.0.0598
Problem: Building with gcc 7.1 yields new warnings. Solution: Initialize result. (John Marriott)
-rw-r--r--src/ex_docmd.c3
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index d0df1fd9f3..13d5fe495e 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -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 */
diff --git a/src/version.c b/src/version.c
index dd39fcdac5..700b4bd1ed 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 598,
+/**/
597,
/**/
596,