]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0632: MS-Windows: Compiler Warnings v9.1.0632
authorKen Takata <kentkt@csc.jp>
Sun, 28 Jul 2024 15:08:15 +0000 (17:08 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 28 Jul 2024 15:08:15 +0000 (17:08 +0200)
Problem:  MS-Windows: Compiler Warnings
Solution: Fix the warnings (Ken Takata)

* Unused variable.
* Conversion from size_t to int.

closes: #15369

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/if_py_both.h
src/insexpand.c
src/search.c
src/version.c

index e0fd3eafb06d2e346b8a5cfb0815b8a7ed0ded52..d09b14c7566d265ee81dbfdf3d5fe0c54095b542 100644 (file)
@@ -358,7 +358,9 @@ static PyObject *py_find_spec;
 #else
 static PyObject *py_load_module;
 #endif
+#if PY_VERSION_HEX < 0x30c00a7
 static PyObject *py_find_module;
+#endif
 
 static PyObject *VimError;
 
index 2a5f8e8045a921a9d7966a4961588e40d9b4209c..00a7b75684137bf97bd6165f82affeacc7fe46ed 100644 (file)
@@ -3544,7 +3544,7 @@ get_next_filename_completion(void)
     int                i;
     int                score;
     char_u     *leader = ins_compl_leader();
-    int                leader_len = STRLEN(leader);
+    size_t     leader_len = STRLEN(leader);
     int                in_fuzzy = ((get_cot_flags() & COT_FUZZY) != 0 && leader_len > 0);
     char_u     **sorted_matches;
     int                *fuzzy_indices_data;
index c8f8736768ca5294c91071231804173136a76f2f..01c143f69bec7adbaefe7641ba41542d8accf8a0 100644 (file)
@@ -5265,7 +5265,7 @@ search_for_fuzzy_match(
                    {
                        found_new_match = TRUE;
                        *pos = current_pos;
-                       *len = STRLEN(*ptr);
+                       *len = (int)STRLEN(*ptr);
                        break;
                    }
                }
index 31b0c2462fc3d9d630efc27bbda00ab7bc6b7b16..398b4821ad0ae266076f8ab27d99c071bdcf5347 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    632,
 /**/
     631,
 /**/