0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.0.0598: building with gcc 7.1 yields new warnings

Problem:    Building with gcc 7.1 yields new warnings.
Solution:   Initialize result. (John Marriott)
This commit is contained in:
Bram Moolenaar
2017-05-16 09:36:54 +02:00
parent 253f912877
commit 9e0f6ec076
2 changed files with 5 additions and 0 deletions

View 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 */