You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar -Werror=deprecated-delcaration building on Debian 11 with qt5 (because apparently qt4 is no longer in Debian repos):
[ 61%] Building CXX object CMakeFiles/torrent-file-editor.dir/bencode.cpp.o
/home/daniel/tfe/torrent-file-editor-0.3.17/bencode.cpp: In static member function ‘static QByteArray Bencode::toRaw(const Bencode*)’:
/home/daniel/tfe/torrent-file-editor-0.3.17/bencode.cpp:518:41: error: ‘QByteArray& QByteArray::operator+=(const QString&)’ is deprecated: Use QString's toUtf8(), toLatin1() or toLocal8Bit() [-Werror=deprecated-declarations]
518 | res += QString::number(ba.size());
| ^
I have QT5 installed.
But this error pop out when executing 'make' command
/home/user/torrent-file-editor/bencodemodel.cpp: In member function ‘void BencodeModel::appendRow(const QModelIndex&)’: /home/user/torrent-file-editor/bencodemodel.cpp:562:32: error: unknown option after ‘#pragma GCC diagnostic’ kind [-Werror=pragmas] #pragma GCC diagnostic ignored "-Wdeprecated-copy" ^~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors make[2]: *** [CMakeFiles/torrent-file-editor.dir/build.make:415: CMakeFiles/torrent-file-editor.dir/bencodemodel.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/torrent-file-editor.dir/all] Error 2 make: *** [Makefile:130: all] Error 2
The text was updated successfully, but these errors were encountered: