1
0
mirror of https://github.com/qt/qtmqtt.git synced 2026-10-25 16:16:26 +00:00
Go to file
Marc Mutz 3368252b0d Tst_QMqttSubscription: fix -Wunused-lambda-capture
Says Clang:

  tst_qmqttsubscription.cpp:515:92: warning: lambda capture 'client' is not used [-Wunused-lambda-capture]
    515 |         connect(subscriptions[i], &QMqttSubscription::messageReceived, subscriptions[i], [&client, topic, &received](QMqttMessage msg) {
        |                                                                                           ~^~~~~~~
  tst_qmqttsubscription.cpp:545:92: warning: lambda capture 'client' is not used [-Wunused-lambda-capture]
    545 |         connect(subscriptions[i], &QMqttSubscription::messageReceived, subscriptions[i], [&client, topic, &received](QMqttMessage msg) {
        |                                                                                           ~^~~~~~~
  tst_qmqttsubscription.cpp:576:92: warning: lambda capture 'client' is not used [-Wunused-lambda-capture]
    576 |         connect(subscriptions[i], &QMqttSubscription::messageReceived, subscriptions[i], [&client, topic, &received](QMqttMessage msg) {
        |                                                                                           ~^~~~~~~

Fix by removing the problematic capture. I don't know why it doesn't
complain about `topic`, which also looks unused.

Amends c383083270 (picked to 6.8).

Pick-to: 6.10 6.8
Change-Id: I52850ae4ff9b5e2faee86cd8252d78ce5f0908ff
Reviewed-by: Even Oscar Andersen <even.oscar.andersen@qt.io>
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
(cherry picked from commit a3c58404a4)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2026-03-24 08:37:57 +00:00
coin Band-aid patch for overriding mosquitto installation detection 2025-04-11 08:01:20 +00:00
dist Remove year from Qt Copyright in REUSE.toml 2025-07-09 11:01:49 +02:00
examples Doc: Add alt text for \image tags for qtmqtt 2026-03-11 14:31:33 +00:00
LICENSES Add REUSE.toml files and missing licenses 2024-11-14 12:24:58 +00:00
src Doc: Add alt text for \image tags for qtmqtt 2026-03-11 14:31:33 +00:00
tests Tst_QMqttSubscription: fix -Wunused-lambda-capture 2026-03-24 08:37:57 +00:00
.cmake.conf Bump version to 6.11.1 2026-03-02 18:06:46 +00:00
.gitattributes Initial commit 2017-01-19 10:27:05 +01:00
.gitignore Add CMakeUserPresets.json to .gitignore 2024-11-28 18:02:47 +01:00
.gitreview Add .gitreview file 2025-03-24 15:22:02 +01:00
.tag Initial commit 2017-01-19 10:27:05 +01:00
CMakeLists.txt Move qt_internal_project_setup as early as possible 2025-06-20 15:33:39 +02:00
dependencies.yaml Update dependencies on '6.11' in qt/qtmqtt 2026-03-12 15:02:18 +00:00
licenseRule.json Update licensing of files with infrastructure type 2025-03-14 13:37:56 +01:00
REUSE.toml Remove year from Qt Copyright in REUSE.toml 2025-07-09 11:01:49 +02:00