From fc106647e38237a66c00c822336b2d4e81b37f6f Mon Sep 17 00:00:00 2001 From: sumanthtg <90063301+sumanthtg@users.noreply.github.com> Date: Fri, 24 Sep 2021 16:27:17 +0530 Subject: [PATCH] SWDEV-303262 - Catch2 test fix for -Wunused-but-set-parameter compilation error. (#2357) Change-Id: I102d80763103fa792ab1282745bd89f8d24454d2 [ROCm/hip commit: e2dd25333a762f7a5fb6acacff5e60ab0a26b5a6] --- projects/hip/tests/catch/unit/stream/hipStreamWithCUMask.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/hip/tests/catch/unit/stream/hipStreamWithCUMask.cc b/projects/hip/tests/catch/unit/stream/hipStreamWithCUMask.cc index f78ef9ee2c..0dd855702d 100644 --- a/projects/hip/tests/catch/unit/stream/hipStreamWithCUMask.cc +++ b/projects/hip/tests/catch/unit/stream/hipStreamWithCUMask.cc @@ -95,10 +95,9 @@ void createDisabledCUMask(std::vector *pdisabledCUMask, } } -void Callback(hipStream_t stream, hipError_t status, +void Callback(hipStream_t, hipError_t status, void* userData) { isPassed = true; - stream = 0; HIP_CHECK(status); REQUIRE(userData == nullptr); for (size_t i = 0; i < N; i++) {