Skip to content

Commit

Permalink
patch 9.1.0632: MS-Windows: Compiler Warnings
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
  • Loading branch information
k-takata authored and chrisbra committed Jul 28, 2024
1 parent 4c45425 commit 073cb02
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/if_py_both.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/insexpand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -5265,7 +5265,7 @@ search_for_fuzzy_match(
{
found_new_match = TRUE;
*pos = current_pos;
*len = STRLEN(*ptr);
*len = (int)STRLEN(*ptr);
break;
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
632,
/**/
631,
/**/
Expand Down

0 comments on commit 073cb02

Please sign in to comment.