Skip to content

Commit 86b9a3e

Browse files
committed
patch 8.2.0526: Gcc 9 complains about empty statement
Problem: Gcc 9 complains about empty statement. Solution: Add {}. (Dominique Pelle, closes #5894)
1 parent 40655d5 commit 86b9a3e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/evalfunc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4561,7 +4561,9 @@ f_has(typval_T *argvars, typval_T *rettv)
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();

src/version.c

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

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
526,
741743
/**/
742744
525,
743745
/**/

0 commit comments

Comments
 (0)