summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-02-19 13:44:00 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-02-19 13:44:00 (GMT)
commit36938b35c8d03d264ebc7d32d4b1b02c031ed5b7 (patch)
treeb1299cd8821c50aff6e82865869274c1833a1ffb
parent3eb94aeb860d79a579660e8e0d95c4de0c8aa39a (diff)
downloadlibkolabxml-36938b35c8d03d264ebc7d32d4b1b02c031ed5b7.tar.gz
Silence warnings generated by swig.
-rw-r--r--src/kolabformat.i4
-rw-r--r--src/php/CMakeLists.txt1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/kolabformat.i b/src/kolabformat.i
index 9b39cb5..242be57 100644
--- a/src/kolabformat.i
+++ b/src/kolabformat.i
@@ -19,6 +19,10 @@
%include "std_string.i"
%include "std_vector.i"
+/* Avoid warnings about not generated operators */
+%ignore *::operator=;
+%ignore *::operator==;
+
namespace std {
%template(vectori) vector<int>;
%template(vectors) vector<string>;
diff --git a/src/php/CMakeLists.txt b/src/php/CMakeLists.txt
index 20647a5..f130af9 100644
--- a/src/php/CMakeLists.txt
+++ b/src/php/CMakeLists.txt
@@ -19,6 +19,7 @@ ADD_CUSTOM_TARGET(generate_php_bindings ALL DEPENDS ${KOLAB_SWIG_PHP_SOURCE_FILE
if (APPLE)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flat_namespace -undefined suppress" )
endif()
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-variable -Wno-unused-label -Wno-maybe-uninitialized -Wno-unused-function" )
# Debian (Wheezy) won't be able to find PHP using find_package. In packaging libkolabxml
# for it, we define the include path and executable during the build.