[Bf-blender-cvs] [c62c44b] master: Fix for scons + mingw64 warning flags fix

Joshua Leung noreply at git.blender.org
Fri Feb 6 11:54:58 CET 2015


Commit: c62c44bdc18680843fde9dfb6d44cc33b899d7f2
Author: Joshua Leung
Date:   Fri Feb 6 23:50:51 2015 +1300
Branches: master
https://developer.blender.org/rBc62c44bdc18680843fde9dfb6d44cc33b899d7f2

Fix for scons + mingw64 warning flags fix

So, it turns out my changes here the other day were a bit too over-eager:
  -Wdeclaration-after-statement and -Wstrict-prototypes only applied to C code
and not C++ (which that set of flags was getting included for too).

  However, -Wno-char-subscripts is fine where it is now, so I've left it in place

===================================================================

M	build_files/scons/config/win64-mingw-config.py

===================================================================

diff --git a/build_files/scons/config/win64-mingw-config.py b/build_files/scons/config/win64-mingw-config.py
index 16574f7..ab39568 100644
--- a/build_files/scons/config/win64-mingw-config.py
+++ b/build_files/scons/config/win64-mingw-config.py
@@ -188,10 +188,10 @@ REL_CFLAGS = []
 REL_CXXFLAGS = []
 REL_CCFLAGS = ['-O2', '-ftree-vectorize']
 
-# NOTE: C_WARN gets ignored
-#C_WARN = ['-Wno-char-subscripts', '-Wdeclaration-after-statement', '-Wstrict-prototypes']
+# NOTE: C_WARN seems to get ignored - at least -Wno-char-subscripts doesn't work!
+C_WARN = ['-Wno-char-subscripts', '-Wdeclaration-after-statement', '-Wstrict-prototypes']
 
-CC_WARN = [ '-Wall', '-Wno-char-subscripts', '-Wdeclaration-after-statement', '-Wstrict-prototypes' ]
+CC_WARN = [ '-Wall', '-Wno-char-subscripts' ]
 
 LLIBS = ['-lshell32', '-lshfolder', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++','-lole32','-luuid', '-lwsock32', '-lpsapi', '-lpthread']




More information about the Bf-blender-cvs mailing list