[libcmis] fix gcc5 build

David Tardon dtardon at fedoraproject.org
Thu Feb 26 14:07:59 UTC 2015


commit 144933577e9c9aece48c5a2453eb875ec2ba7145
Author: David Tardon <dtardon at redhat.com>
Date:   Thu Feb 26 14:59:15 2015 +0100

    fix gcc5 build

 0001-avoid-use-after-delete.patch | 25 +++++++++++++++++++++++++
 libcmis.spec                      |  1 +
 2 files changed, 26 insertions(+)
---
diff --git a/0001-avoid-use-after-delete.patch b/0001-avoid-use-after-delete.patch
new file mode 100644
index 0000000..6ce4bf0
--- /dev/null
+++ b/0001-avoid-use-after-delete.patch
@@ -0,0 +1,25 @@
+From 79d241e452d55304bdce871fc2bd95d645d80b0b Mon Sep 17 00:00:00 2001
+From: David Tardon <dtardon at redhat.com>
+Date: Thu, 26 Feb 2015 14:48:27 +0100
+Subject: [PATCH] avoid use-after-delete
+
+---
+ qa/mockup/mockup-config.cxx | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/qa/mockup/mockup-config.cxx b/qa/mockup/mockup-config.cxx
+index 7918cef..01fec24 100644
+--- a/qa/mockup/mockup-config.cxx
++++ b/qa/mockup/mockup-config.cxx
+@@ -49,7 +49,7 @@ namespace
+         }
+     }
+ 
+-    const char** lcl_toStringArray( vector< string > vect )
++    const char** lcl_toStringArray( const vector< string >& vect )
+     {
+         const char** array = new const char*[vect.size() + 1];
+         for ( size_t i = 0; i < vect.size( ); i++ )
+-- 
+2.1.0
+
diff --git a/libcmis.spec b/libcmis.spec
index c844c0a..909394d 100644
--- a/libcmis.spec
+++ b/libcmis.spec
@@ -20,6 +20,7 @@ BuildRequires: pkgconfig(libxml-2.0)
 BuildRequires: xmlto
 
 Patch0: 0001-fix-boost-configuration-with-gcc-5.patch
+Patch1: 0001-avoid-use-after-delete.patch
 
 %description
 LibCMIS is a C++ client library for working with CM (content management)


More information about the scm-commits mailing list