Skip to content

Commit 5646c4b

Browse files
committed
[SYCL] Void unused variable (#17766)
If assertions are disabled this warning is treated as an error: warning C4101: 'e': unreferenced local variable
1 parent 9d185d1 commit 5646c4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/sycl/detail/common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ static constexpr std::array<T, N> RepeatValue(const T &Arg) {
371371
assert(false); \
372372
}
373373
#else
374-
#define __SYCL_REPORT_EXCEPTION_TO_STREAM(str, e)
374+
#define __SYCL_REPORT_EXCEPTION_TO_STREAM(str, e) (void)e;
375375
#endif
376376

377377
} // namespace detail

0 commit comments

Comments
 (0)