Skip to content

Commit fa228f7

Browse files
committed
patch 8.0.0790: MSVC compiler warning for strncpy in libvterm
Problem: MSVC compiler warning for strncpy in libvterm. Solution: Add a define to stop the warnings. (Mike Williams)
1 parent 96ad8c9 commit fa228f7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/Make_mvc.mak

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ $(OUTDIR)/if_lua.obj: $(OUTDIR) if_lua.c $(INCL)
13411341

13421342
if_perl.c : if_perl.xs typemap
13431343
$(XSUBPP) -prototypes -typemap $(XSUBPP_TYPEMAP) \
1344-
-typemap typemap if_perl.xs > if_perl.c
1344+
-typemap typemap if_perl.xs -output if_perl.c
13451345

13461346
$(OUTDIR)/if_perl.obj: $(OUTDIR) if_perl.c $(INCL)
13471347
$(CC) $(CFLAGS_OUTDIR) $(PERL_INC) if_perl.c
@@ -1470,7 +1470,7 @@ $(OUTDIR)/dimm_i.obj: $(OUTDIR) dimm_i.c $(INCL)
14701470
$(OUTDIR)/glbl_ime.obj: $(OUTDIR) glbl_ime.cpp dimm.h $(INCL)
14711471

14721472

1473-
CCCTERM = $(CC) $(CFLAGS) -Ilibvterm/include -DINLINE="" -DVSNPRINTF=vim_vsnprintf
1473+
CCCTERM = $(CC) $(CFLAGS) -Ilibvterm/include -DINLINE="" -DVSNPRINTF=vim_vsnprintf -D_CRT_SECURE_NO_WARNINGS
14741474
$(OUTDIR)/term_encoding.obj: $(OUTDIR) libvterm/src/encoding.c $(TERM_DEPS)
14751475
$(CCCTERM) -Fo$@ libvterm/src/encoding.c
14761476

src/version.c

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

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
790,
772774
/**/
773775
789,
774776
/**/

0 commit comments

Comments
 (0)