commit | 9e0f6ec0762575d229b86798b284ca4876bc3d73 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue May 16 09:36:54 2017 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue May 16 09:36:54 2017 +0200 |
tree | d51c44c78605ab6627594bd023e56eb87b62ae59 | |
parent | 253f9128779f315ea670f9b4a17446b7b4c74927 [diff] [blame] |
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)
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index d0df1fd..13d5fe4 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c
@@ -10890,6 +10890,9 @@ result = strbuf; break; #endif + default: + result = (char_u *)""; /* avoid gcc warning */ + break; } resultlen = (int)STRLEN(result); /* length of new string */