From: Bram Moolenaar Date: Tue, 7 Apr 2020 17:57:29 +0000 (+0200) Subject: patch 8.2.0526: Gcc 9 complains about empty statement X-Git-Tag: v8.2.0526 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86b9a3e8cd24335195dbe377b98bed1ba291268d;p=vim patch 8.2.0526: Gcc 9 complains about empty statement Problem: Gcc 9 complains about empty statement. Solution: Add {}. (Dominique Pelle, closes #5894) --- diff --git a/src/evalfunc.c b/src/evalfunc.c index 45077f6cb..40fb9e96b 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -4561,7 +4561,9 @@ f_has(typval_T *argvars, typval_T *rettv) if (x == TRUE && n == FALSE) { if (0) - ; + { + // intentionally empty + } #if defined(FEAT_BEVAL) && defined(FEAT_GUI_MSWIN) else if (STRICMP(name, "balloon_multiline") == 0) n = multiline_balloon_available(); diff --git a/src/version.c b/src/version.c index 40f5b145b..bcf333b8d 100644 --- a/src/version.c +++ b/src/version.c @@ -738,6 +738,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 526, /**/ 525, /**/