Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions sycl/include/sycl/ext/oneapi/annotated_arg/annotated_arg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ __SYCL_TYPE(annotated_arg) annotated_arg<T *, detail::properties_t<Props...>> {

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
Expand Down Expand Up @@ -140,6 +142,7 @@ __SYCL_TYPE(annotated_arg) annotated_arg<T *, detail::properties_t<Props...>> {
explicit annotated_arg(const annotated_arg<T2, PropertyListU> &other,
const PropertyListV &proplist) noexcept
: obj(other.obj) {
(void)proplist;
static_assert(std::is_convertible<T2, T *>::value,
"The underlying data type of the input annotated_arg is not "
"compatible");
Expand Down Expand Up @@ -196,7 +199,9 @@ __SYCL_TYPE(annotated_arg) annotated_arg<T, detail::properties_t<Props...>> {

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
Expand Down Expand Up @@ -240,6 +245,7 @@ __SYCL_TYPE(annotated_arg) annotated_arg<T, detail::properties_t<Props...>> {
explicit annotated_arg(const annotated_arg<T2, PropertyListU> &other,
const PropertyListV &proplist) noexcept
: obj(other.obj) {
(void)proplist;
static_assert(std::is_convertible<T2, T>::value,
"The underlying data type of the input annotated_arg is not "
"compatible");
Expand Down