Summary: | Akregator fails to build with gcc 4.7 | ||
---|---|---|---|
Product: | [Applications] akregator | Reporter: | Radek Novacek <rad.n> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cfeck |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Radek Novacek
2012-01-05 13:11:46 UTC
Sorry, proposed patch in initial report was wrong, hopefully this is correct: http://pkgs.fedoraproject.org/gitweb/?p=kdenetwork.git;a=blob_plain;f=kdenetwork-4.7.97-fix-for-g%2B%2B47.patch;hb=HEAD Oops, bad day, I mixed two bugs together. Correct build log: http://koji.fedoraproject.org/koji/getfile?taskID=3619388&name=build.log Correct proposed patch: http://pkgs.fedoraproject.org/gitweb/?p=kdepim.git;a=blob_plain;f=kdepim-4.7.97-fix-for-g%2B%2B47.patch;hb=HEAD I rather suggest to use an "unsigned int" for n, so that the compiler knows it cannot be negative (passing 0 to memset is OK). Git commit cd7e237dde2d0a81a49d6f5e73636870ff3f7fb1 by Allen Winter. Committed on 07/01/2012 at 19:54. Pushed by winterz into branch 'master'. in c4_String::c4_String(), only call memset() if the number of bytes to set is greater than 0. MERGE: 4.8 M +14 -12 akregator/plugins/mk4storage/metakit/src/string.cpp http://commits.kde.org/kdepim/cd7e237dde2d0a81a49d6f5e73636870ff3f7fb1 Git commit 645cefecafc3b40f4cb91675703335bfdc8f8b91 by Allen Winter. Committed on 07/01/2012 at 19:54. Pushed by winterz into branch 'KDE/4.8'. in c4_String::c4_String(), only call memset() if the number of bytes to set is greater than 0. MERGE: 4.8 (cherry picked from commit cd7e237dde2d0a81a49d6f5e73636870ff3f7fb1) M +14 -12 akregator/plugins/mk4storage/metakit/src/string.cpp http://commits.kde.org/kdepim/645cefecafc3b40f4cb91675703335bfdc8f8b91 |