]> granicus.if.org Git - vim/commitdiff
patch 8.1.1014: MS-Windows: /analyze only defined for non-debug version v8.1.1014
authorBram Moolenaar <Bram@vim.org>
Sun, 17 Mar 2019 14:47:25 +0000 (15:47 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 17 Mar 2019 14:47:25 +0000 (15:47 +0100)
Problem:    MS-Windows: /analyze only defined for non-debug version.
Solution:   Move adding of /analyze up. (Taro Muraoka, closes #4114)

src/Make_mvc.mak
src/version.c

index 1df4de856609eab246441a645271dd107414722d..c13a211a3fa135f0d7b1435025f34f6c39e2757f 100644 (file)
@@ -631,6 +631,12 @@ CFLAGS = $(CFLAGS) /MP
 CFLAGS = $(CFLAGS) -DHAVE_STDINT_H
 !endif
 
+# Static code analysis generally available starting with VS2012 (VC11) or
+# Windows SDK 7.1 (VC10)
+!if ("$(ANALYZE)" == "yes") && ($(MSVC_MAJOR) >= 10)
+CFLAGS=$(CFLAGS) /analyze
+!endif
+
 !ifdef NODEBUG
 VIM = vim
 !if "$(OPTIMIZE)" == "SPACE"
@@ -653,12 +659,6 @@ OPTFLAG = $(OPTFLAG) /GL
 CFLAGS=$(CFLAGS) $(WP64CHECK)
 !endif
 
-# Static code analysis generally available starting with VS2012 (VC11) or
-# Windows SDK 7.1 (VC10)
-!if ("$(ANALYZE)" == "yes") && ($(MSVC_MAJOR) >= 10)
-CFLAGS=$(CFLAGS) /analyze
-!endif
-
 CFLAGS = $(CFLAGS) $(OPTFLAG) -DNDEBUG $(CPUARG)
 RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG
 ! ifdef USE_MSVCRT
index 8b3bc69549d42b63c90c9b92242dccde7e33e3cc..6302294bc3ae9c2860157559327eee61995d3640 100644 (file)
@@ -779,6 +779,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1014,
 /**/
     1013,
 /**/