]> granicus.if.org Git - vim/commitdiff
patch 8.2.0526: Gcc 9 complains about empty statement v8.2.0526
authorBram Moolenaar <Bram@vim.org>
Tue, 7 Apr 2020 17:57:29 +0000 (19:57 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 7 Apr 2020 17:57:29 +0000 (19:57 +0200)
Problem:    Gcc 9 complains about empty statement.
Solution:   Add {}. (Dominique Pelle, closes #5894)

src/evalfunc.c
src/version.c

index 45077f6cb1566b304dd331fc491d7082b5a68011..40fb9e96b90743455b424b6ad419e9c2814f3c0b 100644 (file)
@@ -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();
index 40f5b145b94be16d9de43db18d23e5385ac8d3e9..bcf333b8d22cc6decd3b7e6f86d09ca864b1ba27 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    526,
 /**/
     525,
 /**/