Skip to content

Commit 9e0f6ec

Browse files
committed
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)
1 parent 253f912 commit 9e0f6ec

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/ex_docmd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10890,6 +10890,9 @@ eval_vars(
1089010890
result = strbuf;
1089110891
break;
1089210892
#endif
10893+
default:
10894+
result = (char_u *)""; /* avoid gcc warning */
10895+
break;
1089310896
}
1089410897

1089510898
resultlen = (int)STRLEN(result); /* length of new string */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
598,
767769
/**/
768770
597,
769771
/**/

0 commit comments

Comments
 (0)