From 26b93794168e30d0e3160504f44ae287dbdfb109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Kosobucki?= Date: Thu, 18 Jul 2024 14:18:22 +0200 Subject: [PATCH] tests: fix clang-diagnostic-unused-result --- .../linux_platform_event_loop/tst_linux_platform_event_loop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/foundation/linux_platform_event_loop/tst_linux_platform_event_loop.cpp b/tests/auto/foundation/linux_platform_event_loop/tst_linux_platform_event_loop.cpp index 85ba6e3..036dd0b 100644 --- a/tests/auto/foundation/linux_platform_event_loop/tst_linux_platform_event_loop.cpp +++ b/tests/auto/foundation/linux_platform_event_loop/tst_linux_platform_event_loop.cpp @@ -397,7 +397,7 @@ TEST_CASE("Notifies about events") // Register a notifier to listen to the read end of the pipe auto notifier1 = std::make_unique(pipe1[0], FileDescriptorNotifier::NotificationType::Read); bool notified = false; - notifier1->triggered.connect([¬ified](const int &) { + std::ignore = notifier1->triggered.connect([¬ified](const int &) { SPDLOG_INFO("Notifier has been triggered"); notified = true; });