Some of them are legitimate, but others are in upstream library headers from qt (5.12.1-1.fc30
)
The version of gcc I was using:
0$ gcc --version
1gcc (GCC) 9.0.1 20190312 (Red Hat 9.0.1-0.10)
2Copyright (C) 2019 Free Software Foundation, Inc.
There has been a recent fixup (https://github.com/gcc-mirror/gcc/commit/482bd38ed8984aad9b1560405e7b3d775c194ccd). The date suggests that this was fixed in the version of gcc I was using, but the warnings are still printed.
Some example warnings:
0/usr/include/qt5/QtWidgets/qstyleoption.h: In member function ‘QStyleOptionGroupBox& QStyleOptionGroupBox::operator=(const QStyleOptionGroupBox&)’:
1/usr/include/qt5/QtWidgets/qstyleoption.h:626:24: warning: implicitly-declared ‘QStyleOptionComplex& QStyleOptionComplex::operator=(const QStyleOptionComplex&)’ is deprecated [-Wdeprecated-copy]
2 626 | class Q_WIDGETS_EXPORT QStyleOptionGroupBox : public QStyleOptionComplex
3 | ^~~~~~~~~~~~~~~~~~~~
4/usr/include/qt5/QtWidgets/qstyleoption.h:510:5: note: because ‘QStyleOptionComplex’ has user-provided ‘QStyleOptionComplex::QStyleOptionComplex(const QStyleOptionComplex&)’
5 510 | QStyleOptionComplex(const QStyleOptionComplex &other) : QStyleOption(Version, Type) { *this = other; }
6 | ^~~~~~~~~~~~~~~~~~~
7/usr/include/qt5/QtWidgets/qstyleoption.h: In copy constructor ‘QStyleOptionGroupBox::QStyleOptionGroupBox(const QStyleOptionGroupBox&)’:
8/usr/include/qt5/QtWidgets/qstyleoption.h:640:108: note: synthesized method ‘QStyleOptionGroupBox& QStyleOptionGroupBox::operator=(const QStyleOptionGroupBox&)’ first required here
9 640 | QStyleOptionGroupBox(const QStyleOptionGroupBox &other) : QStyleOptionComplex(Version, Type) { *this = other; }
10 | ^~~~~
11/usr/include/qt5/QtWidgets/qstyleoption.h: In copy constructor ‘QStyleOptionSizeGrip::QStyleOptionSizeGrip(const QStyleOptionSizeGrip&)’:
12/usr/include/qt5/QtWidgets/qstyleoption.h:654:108: warning: implicitly-declared ‘QStyleOptionSizeGrip& QStyleOptionSizeGrip::operator=(const QStyleOptionSizeGrip&)’ is deprecated [-Wdeprecated-copy]
13 654 | QStyleOptionSizeGrip(const QStyleOptionSizeGrip &other) : QStyleOptionComplex(Version, Type) { *this = other; }
14 | ^~~~~
15/usr/include/qt5/QtWidgets/qstyleoption.h:654:5: note: because ‘QStyleOptionSizeGrip’ has user-provided ‘QStyleOptionSizeGrip::QStyleOptionSizeGrip(const QStyleOptionSizeGrip&)’
16 654 | QStyleOptionSizeGrip(const QStyleOptionSizeGrip &other) : QStyleOptionComplex(Version, Type) { *this = other; }
17 | ^~~~~~~~~~~~~~~~~~~~
18/usr/include/qt5/QtWidgets/qstyleoption.h: In member function ‘QStyleOptionSizeGrip& QStyleOptionSizeGrip::operator=(const QStyleOptionSizeGrip&)’:
19/usr/include/qt5/QtWidgets/qstyleoption.h:645:24: warning: implicitly-declared ‘QStyleOptionComplex& QStyleOptionComplex::operator=(const QStyleOptionComplex&)’ is deprecated [-Wdeprecated-copy]
20 645 | class Q_WIDGETS_EXPORT QStyleOptionSizeGrip : public QStyleOptionComplex
21 | ^~~~~~~~~~~~~~~~~~~~
22...