From 5646c4bc2cef835fa169ea2d4df88753ce4b736e Mon Sep 17 00:00:00 2001 From: Nikita Kornev Date: Tue, 1 Apr 2025 18:53:58 +0200 Subject: [PATCH] [SYCL] Void unused variable (#17766) If assertions are disabled this warning is treated as an error: warning C4101: 'e': unreferenced local variable --- sycl/include/sycl/detail/common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/include/sycl/detail/common.hpp b/sycl/include/sycl/detail/common.hpp index 19f4d85ab30d..738e7a164154 100644 --- a/sycl/include/sycl/detail/common.hpp +++ b/sycl/include/sycl/detail/common.hpp @@ -371,7 +371,7 @@ static constexpr std::array RepeatValue(const T &Arg) { assert(false); \ } #else -#define __SYCL_REPORT_EXCEPTION_TO_STREAM(str, e) +#define __SYCL_REPORT_EXCEPTION_TO_STREAM(str, e) (void)e; #endif } // namespace detail