Fixed "constant exceeds range of float [-Woverflow]" (issue #544)

This commit is contained in:
Benoit Blanchon
2017-07-09 15:24:58 +02:00
parent 788c9be016
commit abfd3997eb
8 changed files with 163 additions and 111 deletions

View File

@ -10,5 +10,12 @@ add_executable(IntegrationTests
round_trip.cpp
)
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
target_compile_options(IntegrationTests
PUBLIC
-fsingle-precision-constant # issue 544
)
endif()
target_link_libraries(IntegrationTests catch)
add_test(IntegrationTests IntegrationTests)