diff --git a/sycl/include/sycl/ext/oneapi/annotated_arg/annotated_arg.hpp b/sycl/include/sycl/ext/oneapi/annotated_arg/annotated_arg.hpp index f58d1596248c..4a2d2d1d4594 100644 --- a/sycl/include/sycl/ext/oneapi/annotated_arg/annotated_arg.hpp +++ b/sycl/include/sycl/ext/oneapi/annotated_arg/annotated_arg.hpp @@ -95,7 +95,9 @@ __SYCL_TYPE(annotated_arg) annotated_arg> { annotated_arg(T *_ptr, const property_list_t &PropList = properties{}) noexcept - : obj(global_pointer_t(_ptr)) {} + : obj(global_pointer_t(_ptr)) { + (void)PropList; + } // Constructs an annotated_arg object from a raw pointer and variadic // properties. The new property set contains all properties of the input @@ -140,6 +142,7 @@ __SYCL_TYPE(annotated_arg) annotated_arg> { explicit annotated_arg(const annotated_arg &other, const PropertyListV &proplist) noexcept : obj(other.obj) { + (void)proplist; static_assert(std::is_convertible::value, "The underlying data type of the input annotated_arg is not " "compatible"); @@ -196,7 +199,9 @@ __SYCL_TYPE(annotated_arg) annotated_arg> { annotated_arg(const T &_obj, const property_list_t &PropList = properties{}) noexcept - : obj(_obj) {} + : obj(_obj) { + (void)PropList; + } // Constructs an annotated_arg object from a raw pointer and variadic // properties. The new property set contains all properties of the input @@ -240,6 +245,7 @@ __SYCL_TYPE(annotated_arg) annotated_arg> { explicit annotated_arg(const annotated_arg &other, const PropertyListV &proplist) noexcept : obj(other.obj) { + (void)proplist; static_assert(std::is_convertible::value, "The underlying data type of the input annotated_arg is not " "compatible");