Skip to content

Commit 1a15231

Browse files
committed
disabled C4267 Visual Studio warning for now
1 parent 10f7384 commit 1a15231

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
4040
add_compile_options_safe(-Wuseless-cast)
4141
elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
4242
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
43+
# TODO: enable warning
44+
add_compile_options(/wd4267) # warning C4267: '...': conversion from 'size_t' to 'unsigned int', possible loss of data
4345
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
4446
add_compile_options(-Weverything)
4547
# no need for c++98 compatibility

0 commit comments

Comments
 (0)