[ 45%] Building CXX object CMakeFiles/Cyan.dir/src/cyan.cpp.o
/home/skinkie/Sources/cyan/src/cyan.cpp: In member function 'void Cyan::resetImageZoom()':
/home/skinkie/Sources/cyan/src/cyan.cpp:933:20: error: 'void QGraphicsView::setMatrix(const QMatrix&, bool)' is deprecated: Use setTransform() [-Werror=deprecated-declarations]
933 | view->setMatrix(matrix);
| ~~~~~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/qt5/QtWidgets/QGraphicsView:1,
from /home/skinkie/Sources/cyan/src/imageview.h:36,
from /home/skinkie/Sources/cyan/src/cyan.h:60,
from /home/skinkie/Sources/cyan/src/cyan.cpp:33:
/usr/include/qt5/QtWidgets/qgraphicsview.h:170:48: note: declared here
170 | QT_DEPRECATED_X("Use setTransform()") void setMatrix(const QMatrix &matrix, bool combine = false);
| ^~~~~~~~~
/home/skinkie/Sources/cyan/src/cyan.cpp: In member function 'void Cyan::getConvertProfiles()':
/home/skinkie/Sources/cyan/src/cyan.cpp:1141:29: error: 'QMap<K, V>& QMap<K, V>::unite(const QMap<K, V>&) [with Key = QString; T = QString]' is deprecated: Use QMultiMap for maps storing multiple values with the same key. [-Werror=deprecated-declarations]
1141 | outputProfiles.unite(genProfiles(FXX::GRAYColorSpace));
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt5/QtCore/qvariant.h:47,
from /usr/include/qt5/QtWidgets/qaction.h:47,
from /usr/include/qt5/QtWidgets/qtoolbar.h:44,
from /usr/include/qt5/QtWidgets/QToolBar:1,
from /home/skinkie/Sources/cyan/src/cyan.h:37,
from /home/skinkie/Sources/cyan/src/cyan.cpp:33:
/usr/include/qt5/QtCore/qmap.h:1374:15: note: declared here
1374 | QMap<Key, T> &QMap<Key, T>::unite(const QMap<Key, T> &other)
| ^~~~~~~~~~~~
/home/skinkie/Sources/cyan/src/cyan.cpp:1145:29: error: 'QMap<K, V>& QMap<K, V>::unite(const QMap<K, V>&) [with Key = QString; T = QString]' is deprecated: Use QMultiMap for maps storing multiple values with the same key. [-Werror=deprecated-declarations]
1145 | outputProfiles.unite(genProfiles(FXX::GRAYColorSpace));
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt5/QtCore/qvariant.h:47,
from /usr/include/qt5/QtWidgets/qaction.h:47,
from /usr/include/qt5/QtWidgets/qtoolbar.h:44,
from /usr/include/qt5/QtWidgets/QToolBar:1,
from /home/skinkie/Sources/cyan/src/cyan.h:37,
from /home/skinkie/Sources/cyan/src/cyan.cpp:33:
/usr/include/qt5/QtCore/qmap.h:1374:15: note: declared here
1374 | QMap<Key, T> &QMap<Key, T>::unite(const QMap<Key, T> &other)
| ^~~~~~~~~~~~
/home/skinkie/Sources/cyan/src/cyan.cpp:1149:29: error: 'QMap<K, V>& QMap<K, V>::unite(const QMap<K, V>&) [with Key = QString; T = QString]' is deprecated: Use QMultiMap for maps storing multiple values with the same key. [-Werror=deprecated-declarations]
1149 | outputProfiles.unite(genProfiles(FXX::CMYKColorSpace));
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt5/QtCore/qvariant.h:47,
from /usr/include/qt5/QtWidgets/qaction.h:47,
from /usr/include/qt5/QtWidgets/qtoolbar.h:44,
from /usr/include/qt5/QtWidgets/QToolBar:1,
from /home/skinkie/Sources/cyan/src/cyan.h:37,
from /home/skinkie/Sources/cyan/src/cyan.cpp:33:
/usr/include/qt5/QtCore/qmap.h:1374:15: note: declared here
1374 | QMap<Key, T> &QMap<Key, T>::unite(const QMap<Key, T> &other)
| ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/Cyan.dir/build.make:140: CMakeFiles/Cyan.dir/src/cyan.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: CMakeFiles/Cyan.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
I'll log a general bug, because checking out the repository will cause it. The workaround at this moment is:
If you see the following problems: