Summary: | kde-frameworks/kio-5.55.0 Gentoo package - src/core/job_p.h:266:44: warning: ‘opType’ is used uninitialized in this function [-Wuninitialized] | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Unknown <null> |
Component: | general | Assignee: | David Faure <faure> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chinmoyrp65, kdelibs-bugs, mpyne |
Priority: | NOR | ||
Version: | 5.55.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kio/920d2c4ca7d59695205c1b3675f9a1efa89dd966 | Version Fixed In: | 5.57 |
Sentry Crash Report: | |||
Attachments: |
info.txt
build.log |
Description
Unknown
2019-02-17 11:07:46 UTC
Created attachment 118152 [details]
info.txt
emerge --info
Created attachment 118153 [details]
build.log
The compiler cannot see that Delete/Rename/SymLink are the only valid options. Still adding a 'default: return job' case in the switch could be used to silence the warning. Potential fix under review at https://phabricator.kde.org/D20008 Git commit 920d2c4ca7d59695205c1b3675f9a1efa89dd966 by Michael Pyne. Committed on 24/03/2019 at 17:12. Pushed by mpyne into branch 'master'. kjobs: Fix compiler warning for uninit value in SimpleJobPrivate. GCC 8.2 gives a warning about using an uninitialized value in SimpleJobPrivate, in a factory function for SimpleJobs that can also apply relevant JobFlags based on the job's command. The warning is because the compiler is unable to recognize that the 'command' flag is only able to take the three listed values in this codepath. Warning fixed by adding a default case. FIXED-IN: 5.57 Differential Revision: https://phabricator.kde.org/D20008 M +2 -0 src/core/job_p.h https://commits.kde.org/kio/920d2c4ca7d59695205c1b3675f9a1efa89dd966 |