Skip to content

Commit 051b3a1

Browse files
slipherillwieckz
authored andcommitted
DaemonFlags: silence useless warnings on MSVC when using /fp:strict
1 parent 10e631d commit 051b3a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/DaemonFlags.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ if (MSVC)
161161

162162
if (USE_FLOAT_EXCEPTIONS)
163163
set_c_cxx_flag("/fp:strict")
164+
# Don't switch on C4305 "truncation from 'double' to 'float'" every
165+
# time an unsuffixed decimal constant is used
166+
set_c_cxx_flag("/wd4305")
164167
elseif (USE_FAST_MATH)
165168
set_c_cxx_flag("/fp:fast")
166169
endif()

0 commit comments

Comments
 (0)