0
0
mirror of https://github.com/vim/vim.git synced 2025-09-06 21:53:38 -04:00

patch 8.2.0526: Gcc 9 complains about empty statement

Problem:    Gcc 9 complains about empty statement.
Solution:   Add {}. (Dominique Pelle, closes #5894)
This commit is contained in:
Bram Moolenaar 2020-04-07 19:57:29 +02:00
parent 40655d5016
commit 86b9a3e8cd
2 changed files with 5 additions and 1 deletions

View File

@ -4561,7 +4561,9 @@ f_has(typval_T *argvars, typval_T *rettv)
if (x == TRUE && n == FALSE) if (x == TRUE && n == FALSE)
{ {
if (0) if (0)
; {
// intentionally empty
}
#if defined(FEAT_BEVAL) && defined(FEAT_GUI_MSWIN) #if defined(FEAT_BEVAL) && defined(FEAT_GUI_MSWIN)
else if (STRICMP(name, "balloon_multiline") == 0) else if (STRICMP(name, "balloon_multiline") == 0)
n = multiline_balloon_available(); n = multiline_balloon_available();

View File

@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
526,
/**/ /**/
525, 525,
/**/ /**/