From 7deec062744f0e2474cfcfca0460f27e11cbfdde Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 7 May 2012 20:00:39 +0000 Subject: [PATCH] Fix build with clang Submitted by: dim --- net/libcmis/files/patch-configure | 35 +++++++++++++++++++ .../patch-src__libcmis__atom-document.hxx | 11 ++++++ .../files/patch-src__libcmis__atom-folder.hxx | 11 ++++++ .../files/patch-src__libcmis__session.hxx | 10 ++++++ 4 files changed, 67 insertions(+) create mode 100644 net/libcmis/files/patch-configure create mode 100644 net/libcmis/files/patch-src__libcmis__atom-document.hxx create mode 100644 net/libcmis/files/patch-src__libcmis__atom-folder.hxx create mode 100644 net/libcmis/files/patch-src__libcmis__session.hxx diff --git a/net/libcmis/files/patch-configure b/net/libcmis/files/patch-configure new file mode 100644 index 000000000000..b9c0c1d79267 --- /dev/null +++ b/net/libcmis/files/patch-configure @@ -0,0 +1,35 @@ +--- configure.orig 2012-05-07 21:34:01.900594469 +0200 ++++ configure 2012-05-07 21:57:05.241595943 +0200 +@@ -3178,19 +3178,6 @@ + + fi + +-if test x"$enable_werror" != "xno"; then : +- +- CFLAGS="$CFLAGS -Werror" +- CXXFLAGS="$CXXFLAGS -Werror" +- +-fi +-if test x"$GCC" = xyes; then : +- +- # Be tough with warnings and produce less careless code +- CFLAGS="$CFLAGS -Wall -pedantic" +- CXXFLAGS="$CXXFLAGS -Wall -pedantic" +- +-fi + + LIBCMIS_API_VERSION=0.2 + +@@ -15971,6 +15958,12 @@ + + ac_config_files="$ac_config_files Makefile libcmis.pc src/Makefile src/libcmis/Makefile" + ++if test x"$enable_werror" != "xno"; then : ++ ++ CFLAGS="$CFLAGS -Werror" ++ CXXFLAGS="$CXXFLAGS -Werror" ++ ++fi + cat >confcache <<\_ACEOF + # This file is a shell script that caches the results of configure + # tests run on this system so they can be shared between configure diff --git a/net/libcmis/files/patch-src__libcmis__atom-document.hxx b/net/libcmis/files/patch-src__libcmis__atom-document.hxx new file mode 100644 index 000000000000..b20d89c64e52 --- /dev/null +++ b/net/libcmis/files/patch-src__libcmis__atom-document.hxx @@ -0,0 +1,11 @@ +--- src/libcmis/atom-document.hxx.orig 2011-10-01 14:26:15.000000000 +0200 ++++ src/libcmis/atom-document.hxx 2012-05-07 20:06:51.000000000 +0200 +@@ -44,7 +44,7 @@ class AtomDocument : public libcmis::Doc + public: + AtomDocument( AtomPubSession* session, std::string url ); + AtomDocument( AtomPubSession* session, xmlNodePtr entryNd ); +- ~AtomDocument( ); ++ virtual ~AtomDocument( ); + + // Override content methods + virtual FILE* getContent( const char* path = NULL ); diff --git a/net/libcmis/files/patch-src__libcmis__atom-folder.hxx b/net/libcmis/files/patch-src__libcmis__atom-folder.hxx new file mode 100644 index 000000000000..55ff5295a598 --- /dev/null +++ b/net/libcmis/files/patch-src__libcmis__atom-folder.hxx @@ -0,0 +1,11 @@ +--- src/libcmis/atom-folder.hxx.orig 2011-09-30 20:52:01.000000000 +0200 ++++ src/libcmis/atom-folder.hxx 2012-05-07 20:06:29.000000000 +0200 +@@ -42,7 +42,7 @@ class AtomFolder : public libcmis::Folde + public: + AtomFolder( AtomPubSession* session, std::string url ); + AtomFolder( AtomPubSession* session, xmlNodePtr entryNd ); +- ~AtomFolder( ); ++ virtual ~AtomFolder( ); + + // virtual pure methods from Folder + virtual std::vector< libcmis::CmisObjectPtr > getChildren( ); diff --git a/net/libcmis/files/patch-src__libcmis__session.hxx b/net/libcmis/files/patch-src__libcmis__session.hxx new file mode 100644 index 000000000000..6a2eedb7e595 --- /dev/null +++ b/net/libcmis/files/patch-src__libcmis__session.hxx @@ -0,0 +1,10 @@ +--- src/libcmis/session.hxx.orig 2011-09-30 20:38:39.000000000 +0200 ++++ src/libcmis/session.hxx 2012-05-07 19:23:43.000000000 +0200 +@@ -36,6 +36,7 @@ namespace libcmis + class Session + { + public: ++ virtual ~Session( ) { } + + /** Get the Root folder of the repository + */