diff options
Diffstat (limited to 'intern/cycles/SConscript')
-rw-r--r-- | intern/cycles/SConscript | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/SConscript b/intern/cycles/SConscript index 1aa873c7eb5..893ad09c46b 100644 --- a/intern/cycles/SConscript +++ b/intern/cycles/SConscript @@ -72,6 +72,10 @@ if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'): else: cxxflags.append('-ffast-math'.split()) +# Warnings +if env['C_COMPILER_ID'] == 'gcc': + cxxflags.append(['-Werror=float-conversion']) + if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'): incs.append(env['BF_PTHREADS_INC']) |