zip.cpp fails to build on fedora with debug
Fedora 31/x86-64
I'm compiling -O1 -g and am hitting:
../../oscar/zip.cpp: In member function ‘bool ZipFile::AddFiles(FileQueue&, ProgressDialog*)’: ../../oscar/zip.cpp:111:5: error: ‘ok’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 111 | if (!ok) { | ^~
doing
bool ok = true;
seems to fix it.
I guess the case it doesn't realise is if queue was empty at entry.