Skip to content

Commit 668a310

Browse files
committed
silence warnings
1 parent dcae39c commit 668a310

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ option(CONNECTION_MACHINE_BUILD_TESTS "Build Connection Machine Tests" OFF)
4141
option(CONNECTION_MACHINE_CODE_COVERAGE "Enable code coverage reporting" OFF)
4242
option(RUN_TRACY_PROFILER "Enable runtime profiler" OFF)
4343

44+
# ====================================== SILENCE WARNINGS =======================================
45+
4446
if(MSVC)
4547
# C4244: 'conversion' conversion from 'type1' to 'type2', possible loss of data
4648
# C4267: 'var' conversion from 'size_t' to 'type', possible loss of data
47-
add_compile_options(/wd4244 /wd4267)
49+
# C4018: 'var' signed/unsigned mismatch
50+
add_compile_options(/wd4244 /wd4267 /wd4018)
4851
endif()
4952

5053
# ======================================= COVERAGE SETUP ========================================

0 commit comments

Comments
 (0)