Skip to content

Commit ca3939e

Browse files
author
Ramsay Jones
committed
msvc: Disable a level 4 warning and change -W3 to -W4
Signed-off-by: Ramsay Jones <[email protected]>
1 parent 0aaf870 commit ca3939e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ifeq ($(uname_S),Windows)
4242
RANLIB = echo
4343
CC = cl -nologo
4444
AR = lib -nologo
45-
CFLAGS = -TC -W3 -RTC1 -Zi -DWIN32 -D_DEBUG -D_LIB
45+
CFLAGS = -TC -W4 -RTC1 -Zi -DWIN32 -D_DEBUG -D_LIB
4646
AR_OUT=-out:
4747
CC_OUT=-Fo
4848
NO_VISIBILITY=YesPlease

src/cc-compat.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@
6666
#if defined(_MSC_VER)
6767
/* disable "deprecated function" warnings */
6868
# pragma warning ( disable : 4996 )
69+
/* disable "conditional expression is constant" level 4 warnings */
70+
# pragma warning ( disable : 4127 )
6971
#endif
7072

7173
#endif /* INCLUDE_compat_h__ */

tests/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ CC_OUT=-o # add a space
2828
ifeq ($(uname_S),Windows)
2929
CC = cl -nologo
3030
LD = link -nologo
31-
CFLAGS = -TC -W3 -RTC1 -Zi -DWIN32 -D_DEBUG -D_LIB
31+
CFLAGS = -TC -W4 -RTC1 -Zi -DWIN32 -D_DEBUG -D_LIB
3232
LD_OUT=-out:
3333
CC_OUT=-Fo
3434

0 commit comments

Comments
 (0)