From f565ae4639a97a3a7e7ae83fa840f068902a6b25 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Wed, 15 Jul 2015 03:27:10 +0200 Subject: [PATCH] weird warning turns out to be GCC 4.7.2 Bug 56402 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56402 The lambda definition captures the this pointer, but the ctor of the lamda does not initialise this capture. In our case, we're lucky, as we don't use the "this" pointer; otherwise, we'd get a crash a runtime. Fixed since GCC-4.7.3 --> it's *really* time to upgrade to Debian/Jessie --- src/lib/diff/record.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/diff/record.hpp b/src/lib/diff/record.hpp index 8e4ed78b6..4cedb08c5 100644 --- a/src/lib/diff/record.hpp +++ b/src/lib/diff/record.hpp @@ -322,7 +322,7 @@ namespace diff{ { return key == extractKey(elm); }); - } + } ///////////////////TODO this lambda triggers a GCC-4.7.2 Bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56402 friend bool