[llvm] [libsycl][Unit][NFC] Fix unused function warning (PR #217697)
Sergey Semenov via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 10:03:12 PDT 2026
https://github.com/sergey-semenov created https://github.com/llvm/llvm-project/pull/217697
None
>From 2869fedc43894596642ea7d2338f4d32ee1d5796 Mon Sep 17 00:00:00 2001
From: Sergey Semenov <sergey.semenov at intel.com>
Date: Thu, 20 Aug 2026 09:49:54 -0700
Subject: [PATCH] [libsycl][Unit][NFC] Fix unused function warning
---
libsycl/unittests/mock/helpers.cpp | 4 ----
1 file changed, 4 deletions(-)
diff --git a/libsycl/unittests/mock/helpers.cpp b/libsycl/unittests/mock/helpers.cpp
index 2898b39daafad..86e656a19a0ea 100644
--- a/libsycl/unittests/mock/helpers.cpp
+++ b/libsycl/unittests/mock/helpers.cpp
@@ -23,10 +23,6 @@ static bool operator==(const ol_init_args_t &lhs, const ol_init_args_t &rhs) {
lhs.NumPlatforms * sizeof(ol_platform_backend_t)) == 0;
}
-static bool operator!=(const ol_init_args_t &lhs, const ol_init_args_t &rhs) {
- return !(lhs == rhs);
-}
-
template <typename T> void assignAs(void *PropValue, T NewValue) {
*(static_cast<T *>(PropValue)) = NewValue;
}
More information about the llvm-commits
mailing list