[KPhotoAlbum] New compiler warning

Johannes Zarl-Zierl johannes at zarl-zierl.at
Sat Dec 10 00:47:59 GMT 2016


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&,
> MainWindow::CopyPopup::CopyType)’:
> /home/rlk/sandbox/kphotoalbum/MainWindow/CopyPopup.cpp:64:34: warning:
> ‘action’ may be used uninitialized in this function [-Wmaybe-uninitialized]
> action->setEnabled(false);
>                                   ^

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...

Cheers,
  Johannes




More information about the Kphotoalbum mailing list