diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-15 06:24:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-15 06:24:48 +0400 |
commit | f0fcf140f8242c76c8a7373cd61c3d4ab6a57391 (patch) | |
tree | 19e478351a5a746846981696949123253eae8c7a /CMakeLists.txt | |
parent | f81248265d0792029000bb53d23130f88c27a20a (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 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 67dd7e40100..46977d780f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -318,6 +318,7 @@ IF(UNIX AND NOT APPLE) SET(PLATFORM_LINKFLAGS "-pthread") # Better warnings + # note: -Wunused-parameter should be added but for now only apply to ./source/blender SET(C_WARNINGS "-Wall -Wno-char-subscripts -Wpointer-arith -Wcast-align -Wdeclaration-after-statement -Wno-unknown-pragmas") SET(CXX_WARNINGS "-Wall -Wno-invalid-offsetof -Wno-sign-compare") |