Skip to content

Commit bb064db

Browse files
committed
ARROW-2505: [C++] Disable MSVC warning C4800
1 parent 15e4811 commit bb064db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpp/cmake_modules/SetupCxxFlags.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ else()
167167
endif()
168168
endif()
169169

170+
# Disable annoying "performance warning" about int-to-bool conversion
171+
if ("${COMPILER_FAMILY}" STREQUAL "msvc")
172+
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} /Wd4800")
173+
endif()
174+
170175
# if build warning flags is set, add to CXX_COMMON_FLAGS
171176
if (BUILD_WARNING_FLAGS)
172177
# Use BUILD_WARNING_FLAGS with BUILD_WARNING_LEVEL=everything to disable

0 commit comments

Comments
 (0)