Skip to content

Commit 007cbe1

Browse files
committed
Re-enable global suppression of MSVC warnings.
There are hundreds of these, and most of them appear to be in the unit tests, not the actual Thrust headers. It's turning into a rabbit hole and dragging beyond the scope of the current PR. Filed NVIDIA#2409 to track the removal of these suppressions.
1 parent 89cbe4e commit 007cbe1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

thrust/cmake/ThrustBuildCompilerTargets.cmake

+7
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ function(thrust_build_compiler_targets)
1616
set(cxx_compile_options)
1717
set(cxx_compile_definitions)
1818

19+
# Disabled loss-of-data conversion warnings.
20+
# TODO Re-enable.
21+
append_option_if_available("/wd4244" cxx_compile_options)
22+
23+
# Disable warning about applying unary operator- to unsigned type.
24+
# TODO Re-enable.
25+
append_option_if_available("/wd4146" cxx_compile_options)
1926

2027
if (THRUST_DISPATCH_TYPE STREQUAL "Force32bit")
2128
list(APPEND cxx_compile_definitions "THRUST_FORCE_32_BIT_OFFSET_TYPE")

0 commit comments

Comments
 (0)