summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorDavid Edmundson <kde@davidedmundson.co.uk>2014-08-25 18:20:14 +0200
committerDavid Edmundson <kde@davidedmundson.co.uk>2014-08-25 18:26:07 +0200
commit07dd896bfb579e844aee08692253d4baf61e5036 (patch)
tree75c28a5e896e56cb4a27284b339232d87819b57d /cmake
parent4ae4669824ef31e744230ac9bc47da39380c1d73 (diff)
Don't error on unused typedefs
Unused typedefs can happen easily with varying versions of TpGlib, and it's not a problem that should cause compliation to fail.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/TelepathyDefaults.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/modules/TelepathyDefaults.cmake b/cmake/modules/TelepathyDefaults.cmake
index ee3ab33f..d34b24d7 100644
--- a/cmake/modules/TelepathyDefaults.cmake
+++ b/cmake/modules/TelepathyDefaults.cmake
@@ -75,7 +75,8 @@ if(CMAKE_COMPILER_IS_GNUCXX)
non-virtual-dtor)
set(undesired
missing-field-initializers
- unused-parameter)
+ unused-parameter
+ unused-local-typedefs)
compiler_warnings(CMAKE_CXX_FLAGS_WARNINGS cxx ${NOT_RELEASE} "${desired}" "${undesired}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_WARNINGS}")
@@ -93,7 +94,8 @@ if(CMAKE_COMPILER_IS_GNUCXX)
init-self)
set(undesired_c
missing-field-initializers
- unused-parameter)
+ unused-parameter
+ unused-local-typedefs)
compiler_warnings(CMAKE_C_FLAGS_WARNINGS c ${NOT_RELEASE} "${desired_c}" "${undesired_c}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_WARNINGS}")