From 16d5d1563ffbb1caf8fde6e6319c4cc118e00707 Mon Sep 17 00:00:00 2001 From: "Romanov, Vlad" Date: Fri, 13 Jan 2023 02:41:04 -0800 Subject: [PATCH] [SYCL][NFC] Silence unused variable warning --- .../sycl/ext/oneapi/annotated_arg/annotated_arg.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 f58d1596248c8..4a2d2d1d45941 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");