Skip to content

Commit 6bf1c66

Browse files
committed
ARROW-2505: [C++] Disable MSVC warning C4800
Author: Antoine Pitrou <[email protected]> Closes #1980 from pitrou/ARROW-2505-disable-msvc-warning-c4800 and squashes the following commits: f586da2 <Antoine Pitrou> Fix command-line option bb064db <Antoine Pitrou> ARROW-2505: Disable MSVC warning C4800
1 parent 7323b60 commit 6bf1c66

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpp/cmake_modules/SetupCxxFlags.cmake

+5
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)