From c15ba29148a607c79c954ab2cae43c34ecab2ca0 Mon Sep 17 00:00:00 2001 From: Steffen Larsen Date: Mon, 28 Feb 2022 17:37:41 +0300 Subject: [PATCH] [SYCL][NFC] Fix warnings after compile-time properties implementation Signed-off-by: Steffen Larsen --- sycl/include/sycl/ext/oneapi/properties/properties.hpp | 2 +- .../include/sycl/ext/oneapi/properties/property_value.hpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sycl/include/sycl/ext/oneapi/properties/properties.hpp b/sycl/include/sycl/ext/oneapi/properties/properties.hpp index b961572158801..93317fb590b59 100644 --- a/sycl/include/sycl/ext/oneapi/properties/properties.hpp +++ b/sycl/include/sycl/ext/oneapi/properties/properties.hpp @@ -96,7 +96,7 @@ struct ExtractProperties> { template static ExtractedPropertiesT - Extract(std::tuple PropertyValues) { + Extract(std::tuple) { return {}; } }; diff --git a/sycl/include/sycl/ext/oneapi/properties/property_value.hpp b/sycl/include/sycl/ext/oneapi/properties/property_value.hpp index 3acae70c2952d..b920b74ab4088 100644 --- a/sycl/include/sycl/ext/oneapi/properties/property_value.hpp +++ b/sycl/include/sycl/ext/oneapi/properties/property_value.hpp @@ -51,16 +51,16 @@ struct property_value template constexpr std::enable_if_t::value, bool> -operator==(const property_value &LHS, - const property_value &RHS) { +operator==(const property_value &, + const property_value &) { return (std::is_same::value && ...); } template constexpr std::enable_if_t::value, bool> -operator!=(const property_value &LHS, - const property_value &RHS) { +operator!=(const property_value &, + const property_value &) { return (!std::is_same::value || ...); }