Skip to content

Commit

Permalink
patch 8.0.1646: MS-Windows: executable contains unreferenced functions
Browse files Browse the repository at this point in the history
Problem:    MS-Windows: executable contains unreferenced functions and data.
Solution:   Add /opt:ref to the compiler command. (Ken Takata)
  • Loading branch information
brammool committed Mar 26, 2018
1 parent 086eb87 commit 4368d5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Make_mvc.mak
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -766,6 +766,8 @@ static char *(features[]) =

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

0 comments on commit 4368d5c

Please sign in to comment.