src/kolabformat.i src/php

Christian Mollekopf mollekopf at kolabsys.com
Tue Feb 19 14:44:06 CET 2013


 src/kolabformat.i      |    4 ++++
 src/php/CMakeLists.txt |    1 +
 2 files changed, 5 insertions(+)

New commits:
commit 36938b35c8d03d264ebc7d32d4b1b02c031ed5b7
Author: Christian Mollekopf <mollekopf at kolabsys.com>
Date:   Tue Feb 19 14:44:00 2013 +0100

    Silence warnings generated by swig.

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.





More information about the commits mailing list