• R/O
  • SSH

vim: 提交

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

修訂724417668d4208f46cf793de0ad02f6dcb70ace2 (tree)
時間2020-04-08 03:00:04
作者Bram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

patch 8.2.0526: Gcc 9 complains about empty statement

Commit: https://github.com/vim/vim/commit/86b9a3e8cd24335195dbe377b98bed1ba291268d
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 7 19:57:29 2020 +0200

patch 8.2.0526: Gcc 9 complains about empty statement
Problem: Gcc 9 complains about empty statement.
Solution: Add {}. (Dominique Pelle, closes https://github.com/vim/vim/issues/5894)

Change Summary

差異

diff -r 09b34a0c8a93 -r 724417668d42 src/evalfunc.c
--- a/src/evalfunc.c Tue Apr 07 00:01:16 2020 +0200
+++ b/src/evalfunc.c Tue Apr 07 20:00:04 2020 +0200
@@ -4561,7 +4561,9 @@
45614561 if (x == TRUE && n == FALSE)
45624562 {
45634563 if (0)
4564- ;
4564+ {
4565+ // intentionally empty
4566+ }
45654567 #if defined(FEAT_BEVAL) && defined(FEAT_GUI_MSWIN)
45664568 else if (STRICMP(name, "balloon_multiline") == 0)
45674569 n = multiline_balloon_available();
diff -r 09b34a0c8a93 -r 724417668d42 src/version.c
--- a/src/version.c Tue Apr 07 00:01:16 2020 +0200
+++ b/src/version.c Tue Apr 07 20:00:04 2020 +0200
@@ -739,6 +739,8 @@
739739 static int included_patches[] =
740740 { /* Add new patch number below this line */
741741 /**/
742+ 526,
743+/**/
742744 525,
743745 /**/
744746 524,
Show on old repository browser