diff --git a/sycl/include/sycl/detail/common.hpp b/sycl/include/sycl/detail/common.hpp index 19f4d85ab30d3..738e7a164154e 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