I successfully built the kde-frameworks/kio-5.55.0 package on a Gentoo Linux system, but the Portage package manager reports the following warning message: * QA Notice: Package triggers severe warnings which indicate that it * may exhibit random runtime failures. * /var/tmp/portage/kde-frameworks/kio-5.55.0/work/kio-5.55.0/src/core/job_p.h:266:44: warning: ‘opType’ is used uninitialized in this function [-Wuninitialized] * Please do not file a Gentoo bug and instead report the above QA * issues directly to the upstream developers of this software. * Homepage: https://www.kde.org/ I'm using the GCC 8.2.0 compiler. STEPS TO REPRODUCE Run the following command on a Gentoo Linux system: # emerge =kde-frameworks/kio-5.55.0 SOFTWARE/OS VERSIONS Operating System: Gentoo Linux KDE Plasma Version: 5.14.5 Qt Version: 5.11.3 KDE Frameworks Version: 5.55.0 Kernel Version: 4.20.7-gnu OS Type: 64-bit Processors: 2 × Intel® Core™2 Duo CPU E8400 @ 3.00GHz Memory: 7.7 GiB of RAM ADDITIONAL INFORMATION emerge -pv kde-frameworks/kio These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] kde-frameworks/kio-5.55.0:5/5.55::gentoo USE="X kwallet -acl -debug -doc -handbook -kerberos -test" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB
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