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>2010-10-15 06:24:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-10-15 06:24:48 +0400
commitf0fcf140f8242c76c8a7373cd61c3d4ab6a57391 (patch)
tree19e478351a5a746846981696949123253eae8c7a /extern/CMakeLists.txt
parentf81248265d0792029000bb53d23130f88c27a20a (diff)
enable warning for unused args with gcc: -Wunused-parameter
- for cmake only apply this to source/blender, will apply globally later. - ./extern/ ./source/blender/makesrna/intern/ ignore this.
Diffstat (limited to 'extern/CMakeLists.txt')
-rw-r--r--extern/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt
index b15c8a31c73..61acff4cfe4 100644
--- a/extern/CMakeLists.txt
+++ b/extern/CMakeLists.txt
@@ -24,6 +24,9 @@
#
# ***** END GPL LICENSE BLOCK *****
+# Otherwise we get warnings here that we cant fix in external projects
+STRING(REGEX REPLACE "-Wunused-parameter" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
+
IF(WITH_BULLET)
ADD_SUBDIRECTORY(bullet2)
ENDIF(WITH_BULLET)