fix gcc5 build

This commit is contained in:
David Tardon 2015-02-26 14:59:15 +01:00
parent ab5e6a09c6
commit 144933577e
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 79d241e452d55304bdce871fc2bd95d645d80b0b Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@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

View File

@ -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)