[KPhotoAlbum] New compiler warning
rlk at alum.mit.edu
Sat Dec 10 02:57:12 CET 2016
On Sat, 10 Dec 2016 01:47:59 +0100, Johannes Zarl-Zierl wrote:
> On Freitag, 9. Dezember 2016 19:18:06 CET Robert Krawitz wrote:
>> New warning in kph compile:
>> /home/rlk/sandbox/kphotoalbum/MainWindow/CopyPopup.cpp: In constructor
>> ‘MainWindow::CopyPopup::CopyPopup(QWidget*, QUrl&, QList<QUrl>&, QString&,
>> /home/rlk/sandbox/kphotoalbum/MainWindow/CopyPopup.cpp:64:34: warning:
>> ‘action’ may be used uninitialized in this function [-Wmaybe-uninitialized]
> That's interesting. I don't get the warning (even if manually compiling that file using -Wmaybe-uninitialized).
> What compiler are you using? (I'm using gcc 6.2.1)
> The warning is clearly a false positive, but I've changed the code so that the warning should not happen anymore...
4.8.5 (openSUSE is a bit behind)
Robert Krawitz <rlk at alum.mit.edu>
*** MIT Engineers A Proud Tradition http://mitathletics.com ***
Member of the League for Programming Freedom -- http://ProgFree.org
Project lead for Gutenprint -- http://gimp-print.sourceforge.net
"Linux doesn't dictate how I work, I dictate how Linux works."
More information about the KPhotoAlbum