[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35565] trunk/blender/CMakeLists.txt: CMake, GCC: replace -Werror=strict-prototypes with -Wstrict-prototypes, some external headers cause this.
Campbell Barton
ideasman42 at gmail.com
Tue Mar 15 23:30:07 CET 2011
Revision: 35565
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35565
Author: campbellbarton
Date: 2011-03-15 22:30:07 +0000 (Tue, 15 Mar 2011)
Log Message:
-----------
CMake, GCC: replace -Werror=strict-prototypes with -Wstrict-prototypes, some external headers cause this.
Modified Paths:
--------------
trunk/blender/CMakeLists.txt
Modified: trunk/blender/CMakeLists.txt
===================================================================
--- trunk/blender/CMakeLists.txt 2011-03-15 22:24:47 UTC (rev 35564)
+++ trunk/blender/CMakeLists.txt 2011-03-15 22:30:07 UTC (rev 35565)
@@ -1038,7 +1038,8 @@
ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_ERROR_DECLARATION_AFTER_STATEMENT -Werror=declaration-after-statement)
ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_ERROR_IMPLICIT_FUNCTION_DECLARATION -Werror=implicit-function-declaration)
ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_ERROR_RETURN_TYPE -Werror=return-type)
- ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_ERROR_STRICT_PROTOTYPES -Werror=strict-prototypes)
+ # system headers sometimes do this, disable for now, was: -Werror=strict-prototypes
+ ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_ERROR_STRICT_PROTOTYPES -Wstrict-prototypes)
ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_NO_CHAR_SUBSCRIPTS -Wno-char-subscripts)
ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_NO_UNKNOWN_PRAGMAS -Wno-unknown-pragmas)
ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_POINTER_ARITH -Wpointer-arith)
More information about the Bf-blender-cvs
mailing list