Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-10-08 12:58:40 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-10-08 12:58:40 +0400
commitefee3be1d3966535ca4b918132bbcb73e25ec1ee (patch)
treefad6d2dbe0fa0bba4a69c06daf0553e37a765a6e /intern/cycles/CMakeLists.txt
parenta550d913bcd67f26f7a0f59ff0c66f6a65539d69 (diff)
Cycles: enable double promotion warning /w gcc
Diffstat (limited to 'intern/cycles/CMakeLists.txt')
-rw-r--r--intern/cycles/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
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()