Skip to content

Commit 3b4e832

Browse files
committed
ignore some more msvc warnings
1 parent 4a76572 commit 3b4e832

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,13 @@ endif()
138138
if (NOT InMV)
139139
if(MSVC)
140140
# Warnings
141-
# 4244 = conversion' conversion from 'type1' to 'type2', possible loss of data
142-
# 4996 = 'function': was declared deprecated
141+
# 4018 = 'expression' : signed/unsigned mismatch
142+
# 4244 = 'conversion' : conversion from 'type1' to 'type2', possible loss of data
143+
# 4996 = 'function' : was declared deprecated
143144
# 4267 = 'var' : conversion from 'size_t' to 'type', possible loss of data
144-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4244 /wd4996 /wd4267")
145+
# 4305 = 'identifier' : truncation from 'type1' to 'type2'
146+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4018 /wd4244 /wd4996 /wd4267 /wd4305")
147+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4018 /wd4244 /wd4996 /wd4267 /wd4305")
145148

146149
# Multithreaded
147150
set(CMAKE_C_FLAGS_RELEASE "/MT" CACHE TYPE INTERNAL FORCE)

0 commit comments

Comments
 (0)