-
Notifications
You must be signed in to change notification settings - Fork 433
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
[Building/Packaging] Remaining warnings by Qt6 and C++20 #1046
Comments
For 2, 3, and 5, the solutions in the respective PRs are good. |
In both cases I would support your proposals. For topic 4, using For topic 6: With Qt 6.3 the |
Describe the problem
The PR #1001 removed many warnings that were cluttering the build logs while improving compatibility and potentially preempting future refactorings.
However, not all warnings were removed because they are trickier and might involve larger code changes. This issue shall provide a platform to collect and categorise these warnings and work towards a solution for them.
At the time of writing, 6 warnings remain.
Versions
Current dev (e9abc43)
Build commands
I'm using the
cmake
community build for Arch Linux, thoughqmake
should be similarly affected. Full instructions: PKGBUILDWarnings
1. SingleApplication: QCryptographicHash::addData is deprecated
2. UBPreferencesController.cpp: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
3. UBPersistenceManager.cpp: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
4. UBMainWindow.cpp: constexpr QKeyCombination operator+ is deprecated
5. UBNetworkAccessManager.cpp: ‘++’ expression of ‘volatile’-qualified type is deprecated
6. web/simplebrowser/tabwidget.cpp: addAction overload is deprecated
Progress
this
(andsettings
). refactor(UBPreferencesController): narrow lambda capture #1050createDocumentProxyStructure
which is static, making the lambda overkill. refactor(UBPersistenceManager): Make createDocumentProxyStructure static #1047|
was introduced in Qt 6.0.0 [5][6]. Qt5 sort of works with the | operator due to its arithmetic representation of keys which is also used for +. refactor(UBMainWindow): Use | to combine keys #1051std::atomic_int
instead? fix(UBNetworkAccessManager): Use atomic_int instead of volatile #1048Warning 1 needs a dependency update. For the other warnings, there is a PR for further discussion.
@letsfindaway What do you think of warnings 4 and 6 in particular? Are there better solutions?
-- Vekhir
The text was updated successfully, but these errors were encountered: