diff --git a/sycl/include/sycl/detail/common.hpp b/sycl/include/sycl/detail/common.hpp index 1243ae7536b8e..28045637d791a 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 // Tag to help create CTAD definition to avoid ctad-maybe-unsupported warning