mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-28 11:46:31 +00:00
msvc: Disable a level 4 warning and change -W3 to -W4
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
This commit is contained in:
parent
0aaf8708b0
commit
ca3939e682
2
Makefile
2
Makefile
@ -42,7 +42,7 @@ ifeq ($(uname_S),Windows)
|
||||
RANLIB = echo
|
||||
CC = cl -nologo
|
||||
AR = lib -nologo
|
||||
CFLAGS = -TC -W3 -RTC1 -Zi -DWIN32 -D_DEBUG -D_LIB
|
||||
CFLAGS = -TC -W4 -RTC1 -Zi -DWIN32 -D_DEBUG -D_LIB
|
||||
AR_OUT=-out:
|
||||
CC_OUT=-Fo
|
||||
NO_VISIBILITY=YesPlease
|
||||
|
||||
@ -66,6 +66,8 @@
|
||||
#if defined(_MSC_VER)
|
||||
/* disable "deprecated function" warnings */
|
||||
# pragma warning ( disable : 4996 )
|
||||
/* disable "conditional expression is constant" level 4 warnings */
|
||||
# pragma warning ( disable : 4127 )
|
||||
#endif
|
||||
|
||||
#endif /* INCLUDE_compat_h__ */
|
||||
|
||||
@ -28,7 +28,7 @@ CC_OUT=-o # add a space
|
||||
ifeq ($(uname_S),Windows)
|
||||
CC = cl -nologo
|
||||
LD = link -nologo
|
||||
CFLAGS = -TC -W3 -RTC1 -Zi -DWIN32 -D_DEBUG -D_LIB
|
||||
CFLAGS = -TC -W4 -RTC1 -Zi -DWIN32 -D_DEBUG -D_LIB
|
||||
LD_OUT=-out:
|
||||
CC_OUT=-Fo
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user