]> granicus.if.org Git - vim/commitdiff
patch 8.2.4232: some compilers don't like a goto label without statement v8.2.4232
authorBram Moolenaar <Bram@vim.org>
Thu, 27 Jan 2022 17:37:41 +0000 (17:37 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 27 Jan 2022 17:37:41 +0000 (17:37 +0000)
Problem:    Some compilers don't like a goto label without statement.
Solution:   Return instead of using a goto.

src/list.c
src/version.c

index a8b22077f6fdfcf387dfc46461ddbc3e1dd56384..f4fddbdf71c2bfad221e42b5030ad90e1e853654 100644 (file)
@@ -2487,7 +2487,7 @@ filter_map(typval_T *argvars, typval_T *rettv, filtermap_T filtermap)
     {
        semsg(_(e_argument_of_str_must_be_list_string_dictionary_or_blob),
                                                                    func_name);
-       goto theend;
+       return;
     }
 
     // On type errors, the preceding call has already displayed an error
@@ -2524,8 +2524,6 @@ filter_map(typval_T *argvars, typval_T *rettv, filtermap_T filtermap)
 
        did_emsg |= save_did_emsg;
     }
-
-theend:
 }
 
 /*
index 7341fcc837ac1bbe3a792e7dacda809077a844a6..2f872e98110e4d560d35652f6e4d5520ed25fd2a 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4232,
 /**/
     4231,
 /**/