-
Notifications
You must be signed in to change notification settings - Fork 38.7k
build: Re-enable -Wdeprecated-copy #22240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This reverts commit 0c63f80.
|
review ACK 25f19ef |
|
cr ACK 25f19ef: patch looks correct Note to reviewers: |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
Code Review ACK 14cb2e0fe1384f89b4c9ca70751e6676f438b7a5 |
? The issue is definitely still a thing. If you compile this PR on Ubuntu 18.04 with the system packages (Qt 5.9.5) and Clang 10, you're still going to see 100s of warnings, because nothing has changed there since #18738. i.e: /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h:620:106: note: in implicit copy assignment operator for 'QStyleOptionTitleBar' first required here
QStyleOptionTitleBar(const QStyleOptionTitleBar &other) : QStyleOptionComplex(Version, Type) { *this = other; }
^
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h:640:5: warning: definition of implicit copy assignment operator for 'QStyleOptionGroupBox' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
QStyleOptionGroupBox(const QStyleOptionGroupBox &other) : QStyleOptionComplex(Version, Type) { *this = other; }
^
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h:640:106: note: in implicit copy assignment operator for 'QStyleOptionGroupBox' first required here
QStyleOptionGroupBox(const QStyleOptionGroupBox &other) : QStyleOptionComplex(Version, Type) { *this = other; }
^
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h:654:5: warning: definition of implicit copy assignment operator for 'QStyleOptionSizeGrip' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
QStyleOptionSizeGrip(const QStyleOptionSizeGrip &other) : QStyleOptionComplex(Version, Type) { *this = other; }
^
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h:654:106: note: in implicit copy assignment operator for 'QStyleOptionSizeGrip' first required here
QStyleOptionSizeGrip(const QStyleOptionSizeGrip &other) : QStyleOptionComplex(Version, Type) { *this = other; }
^
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h:670:5: warning: definition of implicit copy assignment operator for 'QStyleOptionGraphicsItem' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
QStyleOptionGraphicsItem(const QStyleOptionGraphicsItem &other) : QStyleOption(Version, Type) { *this = other; }
^
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h:670:107: note: in implicit copy assignment operator for 'QStyleOptionGraphicsItem' first required here
QStyleOptionGraphicsItem(const QStyleOptionGraphicsItem &other) : QStyleOption(Version, Type) { *this = other; }
^
1 warning generated.
CXX qt/qt_libbitcoinqt_a-qrc_bitcoin_locale.o
24 warnings generated.
AR libbitcoin_server.a
24 warnings generated.
It's not really surprising that after testing on systems that have either a very recent release, or updated LTS version of Qt, you didn't see any warnings, as they either have the patch that fixed the warnings, or it's been backported. |
Is this even a commonly supported config? I'd presume that GUI users are faster to update to the latest release or LTS or maybe even use the snap/flatpak/static bins. |
I wouldn't think it'd be that common, and you should be able to assume that anyone compiling their own binaries will understand the warnings, and is capable of passing My point here is that claiming a problem is "no longer a thing", and then only testing for it in places where it's obviously not going to occur, doesn't make heaps of sense. I'm still ok with merging this, and will do shortly. If anything, it might serve as a barometer as to whether there are a number of users using that configuration, and whether or not they'll open issues about these kinds of warnings. |
It wasn't obvious to me, since qt itself appeared to have abandoned the backport (maybe they opened a replacement backport or Canonical did their own backporting?) |
Fair enough. Given it was patched in 5.13, testing As for I guess NACK from me for now. The testing in the OP doesn't seem to have been done correctly. |
|
Indeed, my tests were wrong (cannot figure out the reason of that now). |
…nly when external warnings are enabled 1111457 build: Disable deprecated-copy warning only when external warnings are enabled (MarcoFalke) Pull request description: Fixes bitcoin/bitcoin#18967 Alternative to bitcoin/bitcoin#22240 ACKs for top commit: fanquake: tACK 1111457 Tree-SHA512: 0fc826f26ebbeab662fa7eed2a5cc1630c6c4e612deb91734885fc8bae0352be657ec48ae94ff55a984ac36d27b95cea8d947cc5cf408231d56addecf79db83f
… external warnings are enabled 1111457 build: Disable deprecated-copy warning only when external warnings are enabled (MarcoFalke) Pull request description: Fixes bitcoin#18967 Alternative to bitcoin#22240 ACKs for top commit: fanquake: tACK 1111457 Tree-SHA512: 0fc826f26ebbeab662fa7eed2a5cc1630c6c4e612deb91734885fc8bae0352be657ec48ae94ff55a984ac36d27b95cea8d947cc5cf408231d56addecf79db83f
… external warnings are enabled 1111457 build: Disable deprecated-copy warning only when external warnings are enabled (MarcoFalke) Pull request description: Fixes bitcoin#18967 Alternative to bitcoin#22240 ACKs for top commit: fanquake: tACK 1111457 Tree-SHA512: 0fc826f26ebbeab662fa7eed2a5cc1630c6c4e612deb91734885fc8bae0352be657ec48ae94ff55a984ac36d27b95cea8d947cc5cf408231d56addecf79db83f
This PR reverts commit 0c63f80 (#18738), because the initial issue is no longer a thing.
Tested on the following systems:
gcc 9.3.0test is wrongAlthough, did not test this configuration.
Closes #18967.