Hello community,

here is the log from the commit of package kdevelop4 for openSUSE:Factory 
checked in at 2015-08-23 15:43:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kdevelop4 (Old)
 and      /work/SRC/openSUSE:Factory/.kdevelop4.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kdevelop4"

Changes:
--------
--- /work/SRC/openSUSE:Factory/kdevelop4/kdevelop4.changes      2015-07-14 
17:45:48.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.kdevelop4.new/kdevelop4.changes 2015-08-23 
17:41:31.000000000 +0200
@@ -1,0 +2,7 @@
+Thu Aug 20 12:53:22 UTC 2015 - [email protected]
+
+- Add Do-not-use-function-returning-reference-to-temporary.patch
+  from upstream: fixes crashes in the cppsupport plugin when built
+  with newer gcc (boo#942358, kde#347178)
+
+-------------------------------------------------------------------

New:
----
  Do-not-use-function-returning-reference-to-temporary.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kdevelop4.spec ++++++
--- /var/tmp/diff_new_pack.ZG86ek/_old  2015-08-23 17:41:32.000000000 +0200
+++ /var/tmp/diff_new_pack.ZG86ek/_new  2015-08-23 17:41:32.000000000 +0200
@@ -24,6 +24,8 @@
 Group:          Development/Tools/IDE
 Url:            http://www.kdevelop.org
 Source0:        
http://download.kde.org/stable/kdevelop/%{version}/src/kdevelop-%{version}.tar.xz
+#PATCH-FIX-UPSTREAM Do-not-use-function-returning-reference-to-temporary.patch 
boo#942358, kde#347178 -- fixes crashes in the cppsupport plugin when built 
with GCC5
+Patch0:         Do-not-use-function-returning-reference-to-temporary.patch
 BuildRequires:  fdupes
 BuildRequires:  kdebase4-workspace-devel
 BuildRequires:  libkdevplatform-devel >= 1.7.1
@@ -91,6 +93,7 @@
 %lang_package
 %prep
 %setup -q -n kdevelop-%{version}
+%patch0 -p1
 
 %build
   %cmake_kde4 -d build

++++++ Do-not-use-function-returning-reference-to-temporary.patch ++++++
From: Sébastien Lambert <[email protected]>
Date: Mon, 22 Jun 2015 20:48:35 +0000
Subject: Do not use function returning reference to temporary.
X-Git-Url: 
http://quickgit.kde.org/?p=kdevelop.git&a=commitdiff&h=6ef7b373a2284e24753b6eb249ba68da5d9a2444
---
Do not use function returning reference to temporary.

REVIEW: 124126
BUG: 347178
---


--- a/languages/cpp/cppduchain/cpppreprocessenvironment.cpp
+++ b/languages/cpp/cppduchain/cpppreprocessenvironment.cpp
@@ -117,7 +117,7 @@
       rpp::Environment::setMacro(const_cast<rpp::pp_macro*>(&it.ref())); //Do 
not use our overridden setMacro(..), because addDefinedMacro(..) is not 
needed(macro-sets should be merged separately)
 
     for( Cpp::ReferenceCountedStringSet::Iterator it = 
file->definedMacroNames().iterator(); it; ++it ) {
-      m_macroNameSet.insert(it.ref());
+      m_macroNameSet.insert(*it);
     }
 
     //We don't have to care about efficiency too much here, unDefinedMacros 
should be a rather small set
@@ -126,7 +126,7 @@
         m->defined = false;
         m->m_valueHashValid = false;
         rpp::Environment::setMacro(m); //Do not use our overridden 
setMacro(..), because addDefinedMacro(..) is not needed(macro-sets should be 
merged separately)
-        m_macroNameSet.remove(it.ref());
+        m_macroNameSet.remove(*it);
     }
 }
 


Reply via email to