Skip to content

Commit 8be4610

Browse files
mao-yiningchrisbra
authored andcommitted
patch 9.1.2046: MS-Windows: compile warnings
Problem: MS-Windows: compile warnings in os_win32.c, acp_to_enc() requires char_u* but others require char* (John Marriott, after v9.1.2013) Solution: Cast the variables (Mao-Yining) closes: #19074 Signed-off-by: Mao-Yining <mao.yining@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 93eb081 commit 8be4610

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/os_win32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9077,7 +9077,7 @@ GetWin32Error(void)
90779077
static char *oldmsg = NULL;
90789078
char *acp_msg = NULL;
90799079
DWORD acp_len;
9080-
char_u *enc_msg = NULL;
9080+
char *enc_msg = NULL;
90819081
int enc_len = 0;
90829082

90839083
// get formatted message from OS
@@ -9094,7 +9094,7 @@ GetWin32Error(void)
90949094
oldmsg = NULL;
90959095
}
90969096

9097-
acp_to_enc(acp_msg, (int)acp_len, &enc_msg, &enc_len);
9097+
acp_to_enc((char_u *)acp_msg, (int)acp_len, (char_u **)&enc_msg, &enc_len);
90989098
LocalFree(acp_msg);
90999099
if (enc_msg == NULL)
91009100
return NULL;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
2046,
737739
/**/
738740
2045,
739741
/**/

0 commit comments

Comments
 (0)