Skip to content

Commit a464e30

Browse files
authored
[SYCL][NFC] Silence unused variable warning (#8002)
1 parent 5d7e86d commit a464e30

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

sycl/include/sycl/ext/oneapi/annotated_arg/annotated_arg.hpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ __SYCL_TYPE(annotated_arg) annotated_arg<T *, detail::properties_t<Props...>> {
9595

9696
annotated_arg(T *_ptr,
9797
const property_list_t &PropList = properties{}) noexcept
98-
: obj(global_pointer_t(_ptr)) {}
98+
: obj(global_pointer_t(_ptr)) {
99+
(void)PropList;
100+
}
99101

100102
// Constructs an annotated_arg object from a raw pointer and variadic
101103
// properties. The new property set contains all properties of the input
@@ -140,6 +142,7 @@ __SYCL_TYPE(annotated_arg) annotated_arg<T *, detail::properties_t<Props...>> {
140142
explicit annotated_arg(const annotated_arg<T2, PropertyListU> &other,
141143
const PropertyListV &proplist) noexcept
142144
: obj(other.obj) {
145+
(void)proplist;
143146
static_assert(std::is_convertible<T2, T *>::value,
144147
"The underlying data type of the input annotated_arg is not "
145148
"compatible");
@@ -196,7 +199,9 @@ __SYCL_TYPE(annotated_arg) annotated_arg<T, detail::properties_t<Props...>> {
196199

197200
annotated_arg(const T &_obj,
198201
const property_list_t &PropList = properties{}) noexcept
199-
: obj(_obj) {}
202+
: obj(_obj) {
203+
(void)PropList;
204+
}
200205

201206
// Constructs an annotated_arg object from a raw pointer and variadic
202207
// properties. The new property set contains all properties of the input
@@ -240,6 +245,7 @@ __SYCL_TYPE(annotated_arg) annotated_arg<T, detail::properties_t<Props...>> {
240245
explicit annotated_arg(const annotated_arg<T2, PropertyListU> &other,
241246
const PropertyListV &proplist) noexcept
242247
: obj(other.obj) {
248+
(void)proplist;
243249
static_assert(std::is_convertible<T2, T>::value,
244250
"The underlying data type of the input annotated_arg is not "
245251
"compatible");

0 commit comments

Comments
 (0)