On October 18, 2009, Jan Gerrit Marker wrote: > Am Sonntag 18 Oktober 2009 16:30:59 schrieb Albert Astals Cid: > > I see > > amarokrunner_config.cpp:77: warning: taking address of temporary > > that should be fixed as those warnings are pretty serious > > Novice question: why are they serious?
they can cause crashes. the object is "temporary" so the compiler is free to re-use that memory whenever it wants, meaning that it's possible for the accesses made to that object are accessing memory that has since been overwritten with something other than the code/data one might expect there ... leading to a crash. > I fixed both. great :) -- Aaron J. Seigo humru othro a kohnu se GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43 KDE core developer sponsored by Qt Development Frameworks
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel