https://bugzilla.novell.com/show_bug.cgi?id=444605 Summary: kdebluetooth4-0.2-12.17: reference to local variable 'val' returned Product: openSUSE 11.1 Version: Factory Platform: All OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just compiled the Suse Linux factory package kdebluetooth4-0.2-12.17 and I noticed the following /usr/src/packages/BUILD/kdebluetooth4-0.2/src/obexsession/obexsession.cpp:142: warning: reference to local variable 'val' returned I checked the source code const QString& ObexSession::getCurrentPath() { QString val; QDBusReply<QString> reply = session->call("GetCurrentPath"); if (reply.isValid()) { val = reply.value(); return val; and I agree with the compiler. Suggest code re-work. Return by value might be a good idea. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.