diff --git a/sycl/include/sycl/ext/oneapi/experimental/bfloat16.hpp b/sycl/include/sycl/ext/oneapi/experimental/bfloat16.hpp index 1190c80631928..39bad8d1ecc35 100644 --- a/sycl/include/sycl/ext/oneapi/experimental/bfloat16.hpp +++ b/sycl/include/sycl/ext/oneapi/experimental/bfloat16.hpp @@ -35,6 +35,7 @@ class bfloat16 { return __spirv_ConvertFToBF16INTEL(a); #endif #else + (void)a; throw exception{errc::feature_not_supported, "Bfloat16 conversion is not supported on host device"}; #endif @@ -50,6 +51,7 @@ class bfloat16 { return __spirv_ConvertBF16ToFINTEL(a); #endif #else + (void)a; throw exception{errc::feature_not_supported, "Bfloat16 conversion is not supported on host device"}; #endif @@ -88,6 +90,7 @@ class bfloat16 { return bfloat16{-__spirv_ConvertBF16ToFINTEL(lhs.value)}; #endif #else + (void)lhs; throw exception{errc::feature_not_supported, "Bfloat16 unary minus is not supported on host device"}; #endif