From efee3be1d3966535ca4b918132bbcb73e25ec1ee Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 8 Oct 2014 10:58:40 +0200 Subject: Cycles: enable double promotion warning /w gcc --- intern/cycles/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intern/cycles/CMakeLists.txt') diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt index 981499b3a91..fb747c1313e 100644 --- a/intern/cycles/CMakeLists.txt +++ b/intern/cycles/CMakeLists.txt @@ -165,7 +165,9 @@ include_directories( # Warnings if(CMAKE_COMPILER_IS_GNUCXX) ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS _has_cxxflag_float_conversion "-Werror=float-conversion") + ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS _has_cxxflag_double_promotion "-Werror=double-promotion") unset(_has_cxxflag_float_conversion) + unset(_has_cxxflag_double_promotion) endif() -- cgit v1.2.3