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
This commit is contained in:
Fischlurch 2015-07-15 03:27:10 +02:00
parent 00dc968d7b
commit f565ae4639

View file

@ -322,7 +322,7 @@ namespace diff{
{ {
return key == extractKey(elm); 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 friend bool