Code cleanup: Add -Werror=float-conversion to Cycles

This commit is contained in:
Campbell Barton
2014-05-03 07:22:14 +10:00
parent 43d5e54a79
commit 8d16869d83
21 changed files with 106 additions and 96 deletions

View File

@@ -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'])