Skip to content

Commit 1b7ef61

Browse files
authored
[SYCL][NFC] Void unused variable (#17780)
If assertions are disabled this warning is treated as an error: warning C4101: 'e': unreferenced local variable CHERRY-PICK OF 9303f5a
1 parent bcbb30e commit 1b7ef61

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)