# HG changeset patch # User Christian Brabandt # Date 1522090810 -7200 # Node ID 88c8fc800bccc2baa59b95b7b254812241f4fb74 # Parent c9db1f838ebca2e61582c3b523f601273859a6cd patch 8.0.1646: MS-Windows: executable contains unreferenced functions commit https://github.com/vim/vim/commit/4368d5ce8a2fa16826d76eeb32347bbbb4fad2bc Author: Bram Moolenaar Date: Mon Mar 26 20:55:10 2018 +0200 patch 8.0.1646: MS-Windows: executable contains unreferenced functions Problem: MS-Windows: executable contains unreferenced functions and data. Solution: Add /opt:ref to the compiler command. (Ken Takata) diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak --- a/src/Make_mvc.mak +++ b/src/Make_mvc.mak @@ -1158,7 +1158,9 @@ LINK_PDB = /PDB:$(VIM).pdb -debug # CFLAGS with /Fo$(OUTDIR)/ CFLAGS_OUTDIR=$(CFLAGS) /Fo$(OUTDIR)/ -conflags = /nologo /subsystem:$(SUBSYSTEM) +# Add /opt:ref to remove unreferenced functions and data even when /DEBUG is +# added. +conflags = /nologo /subsystem:$(SUBSYSTEM) /opt:ref PATHDEF_SRC = $(OUTDIR)\pathdef.c diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1646, +/**/ 1645, /**/ 1644,