From 379abf7a839d1e5af12c63f020cb95a443b89bd3 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Thu, 16 Jul 2026 04:00:20 +0200 Subject: [PATCH] [SYCL][NFC] Fix device_impl.hpp build warning -Wdeprecated-this-capture Exposed by c7ce9b53fb2c which re-enabled InterProcessCommunication unittest. Fix using explicitly capture. --- sycl/source/detail/device_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/source/detail/device_impl.hpp b/sycl/source/detail/device_impl.hpp index c1aa5a52d47c4..3715e0c0ae1ce 100644 --- a/sycl/source/detail/device_impl.hpp +++ b/sycl/source/detail/device_impl.hpp @@ -1512,7 +1512,7 @@ class device_impl { try { return std::any_of( std::begin(supported_archs), std::end(supported_archs), - [=](const arch a) { return this->extOneapiArchitectureIs(a); }); + [this](const arch a) { return this->extOneapiArchitectureIs(a); }); } catch (const sycl::exception &) { // If we're here it means the device does not support architecture // querying